Readonly
backReturns the Transform's back directional vector.
Readonly
downReturns the Transform's down directional vector.
Readonly
forwardReturns the Transform's forward directional vector.
Readonly
leftReturns the Transform's left directional vector.
Readonly
rightReturns the Transform's right directional vector.
When scaling a parent with segment scale enabled, instead of scaling child objects, it creates position offsets. This setting is used when exporting from certain 3d authoring tools.
Readonly
upReturns the Transform's up directional vector.
Returns the SceneObject the Transform is attached to.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Sets the Transform's position relative to its parent.
Sets the Transform's rotation relative to its parent.
Sets the Transform's scale relative to its parent.
Sets the Transform's local transformation matrix.
Sets the Transform's position relative to the world.
Sets the Transform's rotation relative to the world.
Sets the Transform's scale relative to the world.
This may produce lossy results when parent objects are rotated, so use setLocalScale()
instead if possible.
Sets the Transform's transformation matrix.
Controls the position, rotation, and scale of a SceneObject. Every SceneObject automatically has a Transform attached.
Example