For some reason my object isnt rotating from the middle! Its hard to explain.. Try running this code and see wot i mean! How do I fix It?
Sync On
Sync Rate 30
Autocam Off
Hide Mouse
CLS
Set Camera Range 1,5000
Load Object "Man.3ds",1
Position Object 1,0,Y#,0
Scale Object 1,20,20,20
YRotate Object 1,180
Fix Object Pivot 1
Make Matrix 1,1000,1000,20,20
Load Image "Floor.bmp",1
Prepare Matrix Texture 1,1,1,1
Position Camera X,100,Z
Point Camera X-10,0,Z-10
Sync
Do
X = Object Position X(1)
Z = Object Position Z(1)
Angle = Object Angle Y(1)
Y# = Get Ground Height(1,X,Z)+13
Set Camera To Follow X+25,Y,Z+50,25,75,75,1,0
Position Object 1,0,Y#,0
If Upkey()=1 Then Move Object 1,2
If Downkey()=1 Then Move Object 1,-2
If LeftKey()=1 Then YRotate Object 1,WrapValue(Angle-2)
If Rightkey()=1 Then YRotate Object 1,WrapValue(Angle+2)
Sync
Loop
DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)