Skip to content

TransformTools ​

Inherits: RefCounted

Methods ​

ReturnsName
Transform3Dcalc_delta_transform ( source_pos: Vector3, source_dir: Vector3, source_up: Vector3, target_pos: Vector3, target_dir: Vector3, target_up: Vector3 )
Vector2plane_2d_coords ( transform: Transform3D )
Transform3Drotate_around_point ( transform: Transform3D, point: Vector3, rotation: Vector3, rotation_order: EulerOrder = 2 )
Transform3Drotate_around_point_axis ( transform: Transform3D, point: Vector3, axis: Vector3, angle: float )

Method Descriptions ​

static calc_delta_transform (source_pos: Vector3 , source_dir: Vector3 , source_up: Vector3 , target_pos: Vector3 , target_dir: Vector3 , target_up: Vector3 ) -> Transform3D ​

Calculate the transform that would transform the source position, direction and up vector to the target position, direction and up vector Basically a bit more fancy Inputs for a Transform3D

static plane_2d_coords (transform: Transform3D ) -> Vector2 ​

No description provided yet.

static rotate_around_point (transform: Transform3D , point: Vector3 , rotation: Vector3 , rotation_order: EulerOrder = 2 ) -> Transform3D ​

No description provided yet.

static rotate_around_point_axis (transform: Transform3D , point: Vector3 , axis: Vector3 , angle: float ) -> Transform3D ​

Rotate a transform around a point by an angle around an axis