BaseItem.transition.move_to method

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

Moves this item to the target point over duration.

Parameters

  • target: Vector3

    point in world space.

  • duration: float

    time in seconds.

  • callback: Callable[[], None]

    function to call when the target is reached.

Returns

created Tweener.