SixDofDragBehavior

A behavior that when attached to a mesh will allow the mesh to be dragged around based on directions and origin of the pointer's ray

Hierarchy

  • SixDofDragBehavior

Implements

Index

Constructors

constructor

Properties

currentDraggingPointerID

currentDraggingPointerID: number

The id of the pointer that is currently interacting with the behavior (-1 when no pointer is active)

detachCameraControls

detachCameraControls: boolean

If camera controls should be detached during the drag

dragDeltaRatio

dragDeltaRatio: number

The distance towards the target drag position to move each frame. This can be useful to avoid jitter. Set this to 1 for no delay. (Default: 0.2)

dragging

dragging: boolean

If the behavior is currently in a dragging state

name

name: string

The name of the behavior

onDragEndObservable

onDragEndObservable: Observable<__type>

Fires each time a drag ends (eg. mouse release after drag)

onDragStartObservable

onDragStartObservable: Observable<__type>

Fires each time a drag starts

Methods

attach

  • attach(ownerNode: Mesh): void
  • Attaches the scale behavior the passed in mesh

    Parameters

    • ownerNode: Mesh

      The mesh that will be scaled around once attached

    Returns void

detach

  • detach(): void
  • Detaches the behavior from the mesh

    Returns void

init

  • init(): void
  • Initializes the behavior

    Returns void

Generated using TypeDoc