How to use useConvexPolyhedron on a gltfjsx Model.js? #949
Answered
by
bain2236
Kaushal-Panchal
asked this question in
Q&A
-
Hey , I am a newbie and kind of stuck how to use use-cannon hook on a blender model generated into gltf jsx file ...Below is the Model file generated using react-gltfjsx ...
|
Beta Was this translation helpful? Give feedback.
Answered by
bain2236
Dec 15, 2021
Replies: 1 comment
-
there's a good example here https://codesandbox.io/s/08s1u?file=/src/App.js:911-922 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kaushal-Panchal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there's a good example here https://codesandbox.io/s/08s1u?file=/src/App.js:911-922
Also just at a quick glance I think you should be getting your nodes/materials before useConvex and then pass those nodes to that to be able to create the bounding box to apply physics against