How to create a cannonjs body with the exact size and orientation of a threejs shape

Hi!
Specifically for a tetrahedron, you can see the source code of TetrahedronGeometry: three.js/src/geometries/TetrahedronGeometry.js at ef80ac74e6716a50104a57d8add6c8a950bff8d7 · mrdoob/three.js · GitHub
Use that information for creation of a cannonjs body.

Or create your own geometry, aligned with a cannonjs body. Something like this: Tetrahedron (non-indexed buffer geometry)

1 Like