Are turn object angles supposed to be like this ? They do a stange 180 spin around if you copy the angle to another object.
REM Project: TurnRightTest
REM Created: 13/03/2007 23:32:23
REM
REM ***** Main Source File *****
REM
Load OBJECT "c:program filesthe game creatorsdark basic professionalmediamodelsshipship.x",1
position object 1,-300,0,0
Load OBJECT "c:program filesthe game creatorsdark basic professionalmediamodelsshipship.x",2
position object 2,300,0,0
Load OBJECT "c:program filesthe game creatorsdark basic professionalmediamodelsshipship.x",3
position object 3,-300,300,0
Load OBJECT "c:program filesthe game creatorsdark basic professionalmediamodelsshipship.x",4
position object 4,300,300,0
move camera -300
sync on
sync rate 0
sync
do
turn object right 1,1
r = r + 1 : if r = 360 then r = 0
yrotate object 3,wrapvalue(r)
yrotate object 2,wrapvalue(object angle y(1))
yrotate object 4,wrapvalue(object angle y(3))
cubeAngleOld = cubeAngle1
cubeAngle1 = object angle y(1)
if len(cubeAngleStr$) > 70 then cubeAngleStr$ = right$(cubeAngleStr$,69)
cubeAngleStr$ = cubeAngleStr$ + str$(cubeAngle1)+","
text 0,0,cubeAngleStr$
text 0,400,"Press the space bar until you reach 90-91 degrees and see a 180 switch around!"
sync
wait key
loop
I know you can work around this issue by using yrotate 0-359 but I'm just wondering if this is a bug with turn object left/right or have I missed a strange command that can fix the angles returned by the object?
http://www.KumKie.com http://bulldog.servegame.com