TransformComponent

constructor()

The default constructor.


constructor(transform: Transform)

Creates a TransformComponent initialized with the values from the given Transform.

Parameters

transform

The Transform providing position, rotation, and scale values.


constructor(position: Vector3, rotation: EulerAngles, scale: Vector3)

Creates a TransformComponent with the specified position, rotation, and scale.

Parameters

position

The Vector3 position.

rotation

The EulerAngles rotation.

scale

The Vector3 scale.


constructor(position: Vector3, rotation: Quat, scale: Vector3)

Creates a TransformComponent with the specified position, rotation, and scale.

Parameters

position

The Vector3 position.

rotation

The Quat rotation.

scale

The Vector3 scale.