ReadonlyTransform class
Defines the position, scale and rotation of an item.
Every Transform
can be assigned to a BaseItem.parent which allows hierarchical editing of their position, scale and rotation.
Created hierarchies are displayed in the Item Hierarchy tab.
Known subtypes
Methods
copy | (self) -> Transform |
Returns a copy of this |
|
local_to_world_point | (self, position: Vector3) -> Vector3 |
Converts local |
|
local_to_world_vector | (self, direction: Vector3) -> Vector3 |
Converts local |
|
world_to_local_point | (self, position: Vector3) -> Vector3 |
Converts world |
|
world_to_local_vector | (self, direction: Vector3) -> Vector3 |
Converts world |
Properties
readonly | axis_x | Vector3 |
Red axis of this |
readonly | axis_y | Vector3 |
Green axis of this |
readonly | axis_z | Vector3 |
Blue axis of this |
readonly | forward | Vector3 |
Shorthand for |
readonly | position | Vector3 |
Position of this |
readonly | right | Vector3 |
Shorthand for |
readonly | rotation | Quat |
Rotation of this |
readonly | scale | float |
Scale of this |
readonly | up | Vector3 |
Shorthand for |