RotateUpTo (script event)

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Initiates a rotation about the given axis by increasing the current angle towards the given angle.

Usage

void rotateUpTo( float axis , float angle )

Parameters

[axis] - The Axis to rotate around in float format. 0 (zero) = X, 1 = Y & 2 = Z

[angle] - angle in degrees to rotate to

Examples

This example shows a mover (light_02_rot) rotated on the X (0) axis increasing it’s degrees to -70 degrees from it’s current position.

$light_02_rot.rotateUpTo(0, -70);

Notes

Uses the current speed/time and acceleration and deceleration settings.