BaseItem.transition.move_by method

move_by(self, target: Vector3, duration: float, callback: Callable[[], None]) -> Tweener:

Moves this item from its current position by local offset vector.

Parameters

  • target: Vector3

    relative offset to apply.

  • duration: float

    time in seconds.

  • callback: Callable[[], None]

    function to call when the target is reached.

Returns

created Tweener.