This command rotates the object up or down about the x-axis.
object.TurnDown(angle,time,animation,animation speed)
or:
object.TurnUp(angle,time,animation,animation speed)
angle | The number of radians to move down |
time | The number of seconds that the move will take (if omitted, the movement is immediate) |
animation | The animation name to play (only for 3D objects) |
animation speed | The speed of the animation from 0 to 100 |
The following code will turn the sphere down 2 radians in 5 seconds. The sphere is facing forward, so the lines on the sphere that you can see appear to rotate up.
oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); ocamera.MoveBack(1200); ocamera.Walk(); sphere.TurnDown(2,5); //Move it in 5 seconds. //Loop While(TRUE);