Create a HandGrab #296
-
Hello! I'm working on implementing a HandGrab feature to enhance the user experience in my VR environment. With the current RayGrab, I've noticed that users can grab objects without their virtual hands actually making contact with them. This discrepancy between the hand's position and the object's position diminishes the immersive experience. Key improvements I'm aiming for:
Could you guide me on how to implement these enhancements? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
why don't you use object3d.attach() like this example(https://threejs.org/examples/?q=vr#webxr_vr_handinput_pointerdrag)? |
Beta Was this translation helpful? Give feedback.
-
with react-three/xr v6, grabbing is as simple as using pointer-events with the mouse using pointer-capture on html/css. |
Beta Was this translation helpful? Give feedback.
with react-three/xr v6, grabbing is as simple as using pointer-events with the mouse using pointer-capture on html/css.
As a side node, the roadmap contains the react-three/controls package, which will contain the DragControls component, which will allow to make anything draggable using rays but also grabbing and will work out of the box.