This command moves an object away from the direction that it is facing .

 object.MoveBack(distance, time, animation, animation speed) 



The distance object is to move


The number of seconds that the move will take (if omitted, the movement is immediate)


The animation name to play (only for 3D objects)

animation speed

The speed of the animation from 0 (slowest) to 100 ( fastest )


The object will move away from the direction it is facing. If you rotate the object, the direction of motion from the MoveBack command will change because the object faces a new direction.

Sample Code

 oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); ocamera.MoveBack(1200); //Move the sphere. sphere.MoveBack(200,5); //Loop While(TRUE); 

Elementary Game Programming and Simulators Using Jamagic
Elementary Game Programming & Simulations Using Jamagic (Charles River Media Game Development)
ISBN: 1584502614
EAN: 2147483647
Year: 2002
Pages: 105
Authors: Sergio Perez © 2008-2017.
If you may any questions please contact us: