Transform.rotate method

rotate(self, origin: Vector3, axis: Vector3, angle_in_radians: float) -> Transform:

Rotates this Transform by angleInRadians around an origin point using axis as rotation direction.

Parameters

  • origin: Vector3

    world space position to rotate around.

  • axis: Vector3

    rotation axis.

  • angle_in_radians: float

    rotation in radians.

Returns