BaseItem.transition.rotate_local method

rotate_local(self, axis: Vector3, angle_in_radians: float, duration: float, callback: Callable[[], None]) -> Tweener:

Rotates this item by angleInRadians towards axis direction over duration.

Parameters

  • axis: Vector3

    vector defining the local rotation axis.

  • angle_in_radians: float

    rotation in radians.

  • duration: float

    time in seconds.

  • callback: Callable[[], None]

    function to call when the Tweener ends.

Returns

created Tweener