setRotation
Set the rotation of the object.
Syntax
object.setRotation(rotation);
Parameters
Name | Type | Description |
---|---|---|
rotation | Euler , EulerArray , Quaternion or QuaternionArray | The new rotation |
Example
object.setRotation([0, Math.PI, 0]);
Available on: Client Server