c-frame / aframe-super-hands-component

👐All-in-one natural hand controller, pointer, and gaze interaction library for A-Frame
https://c-frame.github.io/aframe-super-hands-component/examples/
MIT License
355 stars 72 forks source link

Control the child model drag of gltf model #221

Open zyyquanquan opened 2 years ago

zyyquanquan commented 2 years ago

I have a gltf model that can control the whole drag. At present, I think I can control the drag of sub models in the model. I didn't think of a good scheme

wmurphyrd commented 2 years ago

You might try something like https://www.npmjs.com/package/aframe-gltf-part-component to break up the gltf model into separate entities that can each be draggable. If you nest the submodel entities within the larger model entity, the super-hands will handle both dragging them all together when you move the whole model and moving the individual parts when you grab them