Methods
Model
transformModel
Applies a transformation to the specified model.
The transformation is always relative to the default model transform. This is an absolute position and zero rotation.
Id of the model to transform.
Type | Required |
---|---|
String | Yes |
Transformation to apply.
Type | Required |
---|---|
Object | Yes |
Properties
Name | Type | Required | Description |
---|---|---|---|
position | Vector3 | No | Position to move to |
rotation | Rotation | No | Rotation transform |
Rotation
Name | Type | Required | Description |
---|---|---|---|
angle | Number | Yes | Angle in radians |
centerOfRotation | Vector3 | Yes | Point to rotate over |