This command rolls the object about its fore/aft axis.
object.RollLeft(angle, time, animation, animation Speed) object.RollRight(angle, time, animation, animation Speed)
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. |
Rotation is relative to the object.
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) { }