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