pmndrs / react-three-jolt

⚡ Jolt physics in React
https://react-three-jolt.pmnd.rs/
MIT License
97 stars 5 forks source link

DynamicTrimesh doesn't work #112

Open DennisSmolek opened 5 months ago

DennisSmolek commented 5 months ago

Jolt hates DynamicTrimeshes

I had things working (at least I thought) but in recent tests using a dynamic trimesh breaks everything. It might be related to scaling a trimesh I'm not sure.

When doing a static trimesh for the ballBox demo it works, but switching the type to dynamic and the shape disappears. Logging out positions returns a vector of [Nan, Nan, Nan] so something is messed up.

I do what I thought it correct in the body-system around #648

Heres the Jolt Docs on WHY NOT to use them but how to

Here's the cpp Example