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

custom mesh not grabbable? #159

Open javiTugboat opened 5 years ago

javiTugboat commented 5 years ago

Hi! I have a question regarding making a custom mesh (gltf) grabbable with motion controllers. I have implemented super hands with primitive aframe entities ( box and plane) and it works perfectly. However, when trying to grab a custom gltf model, it does not work. I was wondering if the procedure for grabbing a gltf model is different than with primitive entities? Many thanks in advance.

IFrankestein commented 4 years ago

Hello Javi,

I am also stuck on same problem but a year after you. I have found that it is importatnt to use physics system for grabbing a custom object. But even I am not able to achieve it.

wmurphyrd commented 4 years ago

If you are using physics, you have to tell the physics system how to handle collisions for your gltf. It is able to do this automatically for simple primitives, but not models. See https://github.com/donmccurdy/aframe-physics-system/blob/master/README.md#shape