pmndrs / cannon-es

💣 A lightweight 3D physics engine written in JavaScript.
https://pmndrs.github.io/cannon-es/
MIT License
1.78k stars 133 forks source link

Make cannon-es deterministic #209

Open johnnyrainbow opened 2 months ago

johnnyrainbow commented 2 months ago

Currently the main issue I have with cannon-es/js is that is it non deterministic in real time, this is quite a major thing for a physics engine to have, would love to see it implemented.

hichemfantar commented 2 months ago

cannon is basically in maintenance mode. check out Rapier https://www.rapier.rs/docs/user_guides/rust/determinism

isaac-mason commented 2 months ago

Hey @johnnyrainbow!

Folks at pmndrs are keeping the lights on, but yes currently there are no developers actively working on improving cannon-es.

WASM physics libraries such as rapier.js and JoltPhysics.js are worth considering for sure. The biggest downside to these WASM port libraries over cannon is bundle size.

If there are things you're keen to see change in cannon-es you will probably need to contribute changes yourself. I note that you've got a fork of cannon-es with some activity, if there are changes that make sense to be upstreamed we can review PRs.