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 Transform's world-to-local transformation matrix.
Returns the Transform's position relative to its parent.
Returns the Transform's rotation relative to its parent.
Returns the Transform's scale relative to its parent.
Returns the SceneObject the Transform is attached to.
Returns the name of this object's type.
Returns the Transform's position relative to the world.
Returns the Transform's rotation relative to the world.
Returns the Transform's scale relative to the world.
Returns the Transform's local-to-world transformation matrix.
Returns true if the object matches or derives from the passed in type.
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 scale relative to the world.
This may produce lossy results when parent objects are rotated, so use setLocalScale()
instead if possible.
Controls the position, rotation, and scale of a SceneObject. Every SceneObject automatically has a Transform attached.
Example