You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Assume raycaster is an instance of THREE.Raycaster// Destructure the origin and direction vectorsconst{ origin, direction }=raycaster.ray;// Normalize the direction vectordirection.normalize();// Use object destructuring to directly pass the coordinates to the XRRayconstxrRay=newXRRay({ ...origin},// Pass the x, y, z components of the origin{ ...direction}// Pass the x, y, z components of the normalized direction);
The text was updated successfully, but these errors were encountered:
https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestHitTestSource#options accepts an optional
offsetRay: XRRay
-> allow current
useHitTest()
implementation to specify its own ray, like controllers' one for instance.The text was updated successfully, but these errors were encountered: