Skip to content

How to use useConvexPolyhedron on a gltfjsx Model.js? #949

Answered by bain2236
Kaushal-Panchal asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants