Class BaseSixDofDragBehavior
Hierarchy
- BaseSixDofDragBehavior
Implements
Index
Properties
allow Multi PointerSearch playground for allowMultiPointer
Should the behavior allow simultaneous pointers to interact with the owner node.
current Dragging Pointer IdsSearch playground for currentDraggingPointerIds
In case of multipointer interaction, all pointer ids currently active are stored here
detach Camera ControlsSearch playground for detachCameraControls
/** If camera controls should be detached during the drag
draggable MeshesSearch playground for draggableMeshes
The list of child meshes that can receive drag events
If null
, all child meshes will receive drag event
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
z Drag FactorSearch playground for zDragFactor
How much faster the object should move when the controller is moving towards it. This is useful to bring objects that are far away from the user to them faster. Set this to 0 to avoid any speed increase. (Default: 3)
Accessors
current Dragging PointerID
-
Get or set the currentDraggingPointerId
Returns number
-
Get or set the currentDraggingPointerId
Parameters
-
currentDraggingPointerID: number
Returns any
-
current Dragging Pointer Id
-
The id of the pointer that is currently interacting with the behavior (-1 when no pointer is active)
Returns number
-
The id of the pointer that is currently interacting with the behavior (-1 when no pointer is active)
Parameters
-
value: number
Returns any
-
is Moving
-
Returns true if the attached mesh is currently moving with this behavior
Returns boolean
name
-
The name of the behavior
Returns string
Methods
attachSearch playground for attach
-
Attaches the scale behavior the passed in mesh
Parameters
-
ownerNode: TransformNode
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
Base behavior for six degrees of freedom interactions in XR experiences. Creates virtual meshes that are dragged around And observables for position/rotation changes