Creates a new Transform component.
Initial configuration for position, rotation, and scale.
OptionalactorThe actor that has this component. It is undefined until the component is
added to an actor.
Local-space transform values (position, rotation, scale). These values are relative to the parent transform.
AdvancedlocalMatrix representing the local-space transformation.
World-space transform values derived from the local transform and the parent hierarchy.
AdvancedworldMatrix representing the world-space transformation.
Advanced
Inverse of the world transformation matrix. Useful for converting world-space coordinates to local space.
Returns the parent Transform component, if one exists.
The parent Transform or undefined if this transform has no parent.
Advanced
Marks this transform and all descendant transforms as dirty.
This signals that their matrices must be recalculated before use.
Advanced
Recomputes the local transformation matrix from local position, rotation, and scale.
Advanced
Recomputes the world transformation matrix if the transform is dirty.
This method ensures parent transforms are updated first and then composes the local matrix with the parent world matrix.
The position, rotation and scale of an actor. Every actor has one.
localholds the values relative to the parent actor.worldholds the values in the scene.Example
See
Actors