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 71 forks source link

Question: Replacing super-hands' "grabbable" to "graspable" #240

Open mrgeralds opened 3 months ago

mrgeralds commented 3 months ago

Hello,

as mentioned in the commit #239 , I can theoretically "also try making a 'my-super-hands' component that modifies the superhands stack and replaces the word grabbable with something else like graspable" in order to avoid conflict with A-Frame's grabbable.

Can anyone of you show me how to do that (correctly)? (Better yet, can anyone document how to do that in the readme?)

Cheers, G.

arvind-iyer commented 2 months ago

As a work-around for now, you can go into reaction_components/grabbable.js and change the line 7 to

AFRAME.registerComponent('graspable', inherit(base, {