Open coolvision opened 1 year ago
I ran into this problem as well. My data would work as a convexHull
but not as a convexMesh
. I was able to get convexMesh
to work by excluding the indices
argument and only providing the vertices
Update: I'm wondering if the underlying issue is with the indices ArrayBuffer data type.
Creating a collirer with RAPIER.ColliderDesc.convexMesh does not work. Here is a simple test case:
inputs should be correct, THREE.BoxGeometry is convex. But, this causes an error:
can be reproduced in sandbox: https://codesandbox.io/p/github/coolvision/rapier_js_examples/master?workspaceId=e7df68ff-e684-4891-81ac-cef3e7594869