This command moves an object to its left or right without changing its orientation (strafing), relative to the direction that it is facing .
object.MoveLeft(distance, time, animation, animation speed)
distance | The distance object is to move |
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 (slowest) to 100 ( fastest ) |
The following code has commands commented out for moving to the right. You must use one or the other ( MoveLeft or MoveRight ).
oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); ocamera.MoveBack(1200); //Move the sphere. sphere.MoveLeft(200,5); //sphere.MoveRight(200,5); //Loop While(TRUE);