Transform.rotate_local method

rotate_local(self, offset: Vector3, axis: Vector3, angle_in_radians: float) -> Transform:

Rotates this Transform by angleInRadians around an offset towards axis direction.

Parameters

  • offset: Vector3

    offset relative to current position.

  • axis: Vector3

    rotation axis.

  • angle_in_radians: float

    rotation in radians.

Returns