RollLeftRollRight


RollLeft/RollRight

This command rolls the object about its fore/aft axis.

 object.RollLeft(angle, time, animation, animation Speed) object.RollRight(angle, time, animation, animation Speed) 

Parameters

angle

The number of radians rolled

time

The number of seconds in which the rotation is to take place

animation

Applies to 3D objects only and refers to the name of the animation to play during the rotation

animation speed

The speed of the animation to be played , from 0 to 100.

Notes

Rotation is relative to the object.

Sample Code

 oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); ocamera.MoveBack(1200); Sphere.RollLeft(2,5); //Loop While(1) { } 



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