TranslateDragGesturePayload#

class omni.kit.manipulator.transform.TranslateDragGesturePayload(
base: GesturePayload,
changing_item: AbstractManipulatorItem,
)#

Bases: TransformDragGesturePayload

A payload for drag gestures used during translation operations.

This class holds details about the translation operation such as the axis of translation, the delta movement since the last change, and the total movement since the drag started.

Methods

Attributes

axis

The axis along which the translation is occurring.

moved_delta

The change in position since the last update.

moved

The total change in position since the drag began.

__init__(
base: GesturePayload,
changing_item: AbstractManipulatorItem,
)#

Initializes a new instance of the TransformDragGesturePayload.

axis: Sequence[float]#

The axis along which the translation is occurring.

moved: Sequence[float]#

The total change in position since the drag began.

moved_delta: Sequence[float]#

The change in position since the last update.