Type Alias DragEvent
type DragEvent = {
delta: WebXRSpatialLayerType;
dragDistance: number;
dragPlaneNormal: WebXRSpatialLayerType;
dragPlanePoint: WebXRSpatialLayerType;
pointerId: number;
pointerInfo: WebXRSpatialLayerType<WebXRSpatialLayerType>;
}
delta: WebXRSpatialLayerType;
dragDistance: number;
dragPlaneNormal: WebXRSpatialLayerType;
dragPlanePoint: WebXRSpatialLayerType;
pointerId: number;
pointerInfo: WebXRSpatialLayerType<WebXRSpatialLayerType>;
}
Index
Properties
delta
Delta between last drag position and current drag position in world space
drag Distance
dragDistance: number
Distance along the drag axis
drag Plane Normal
Normal of the current drag plane used during the drag
drag Plane Point
Point in world space where the drag intersects the drag plane
(if validatedDrag is used, the position of the attached mesh might not equal dragPlanePoint)
pointer Id
pointerId: number
Pointer id to use
pointer Info
Pointer info for the event (if any)
Event type for drag move events