Optional
options: Partial<TransformOptions>If TRUE, the parent position will be ignored
If TRUE, the parent rotation will be ignored
If TRUE, the parent scale will be ignored
READONLY: The real position in the simulated world. It has the same value as position
property if there is no parent
READONLY: The real rotation in the simulated world. It has the same value as rotation
property if there is no parent
READONLY: The real scale in the simulated world. It has the same value as scale
property if there is no parent
Position relative to the zero point of the simulated world, or relative to the parent if it has one
Rotation expressed in radians
Scale on x-axis and y-axis
The Transform component defines an entity's position, scale and rotation in the game world.
It can be nested under a parent transform to create hierarchical relationships, where child transforms inherit and combine with their parent's transformations.
The component provides both local and world-space values, and allows selectively ignoring parent transformations.
Example