Function: beginDrag()
function beginDrag(
rayOrigin: Vec3,
grabPoint: Vec3,
windowPosition: Vec3
): DragSession;
Defined in: webxr-uiextensions/src/core/drag-math.ts:36
Begin a drag: capture how far along the ray the grab landed and where the window origin sits relative to the grab point.
Parameters
| Parameter | Type |
|---|---|
rayOrigin | Vec3 |
grabPoint | Vec3 |
windowPosition | Vec3 |