Class SixDofDragBehavior
Hierarchy
- SixDofDragBehavior
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Instantiates 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
Returns SixDofDragBehavior
Properties
current Dragging PointerIDSearch playground for currentDraggingPointerID
The id of the pointer that is currently interacting with the behavior (-1 when no pointer is active)
detach Camera ControlsSearch playground for detachCameraControls
If camera controls should be detached during the drag
drag Delta RatioSearch playground for dragDeltaRatio
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)
draggingSearch playground for dragging
If the behavior is currently in a dragging state
on Drag End ObservableSearch playground for onDragEndObservable
Fires each time a drag ends (eg. mouse release after drag)
on Drag ObservableSearch playground for onDragObservable
Fires each time a drag happens
on Drag Start ObservableSearch playground for onDragStartObservable
Fires each time a drag starts
rotate Dragged ObjectSearch playground for rotateDraggedObject
If the object should rotate to face the drag origin
Accessors
name
-
The name of the behavior
Returns string
Methods
attachSearch playground for attach
-
Attaches the scale behavior the passed in mesh
Parameters
-
ownerNode: Mesh
The mesh that will be scaled around once attached
Returns void
-
detachSearch playground for detach
-
Detaches the behavior from the mesh
Returns void
initSearch playground for init
-
Initializes the behavior
Returns void
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