This command turns the object around so that the back of the object faces where the front was facing .


Sample Code

The following code illustrates this command. When the left arrow key is pressed down, the cube will reverse orientation. However, note that it will continue moving in the same direction.

 oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateBrick(50,50,50,25,25); ocamera.MoveBack(1200); sphere.AddPosition(300,0,0,10); //Move it in 10 seconds. //Loop While(TRUE) {   If ( Keyboard.IsKeyDown(Keyboard.LEFT))     {       osphere.TurnBack()      }  } 

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

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net