A ECS Bevy physics plugin.
Most likely you should go use rapier, this is a moon shot.
This is where I am teaching myself what goes into a physics engine, the goal is having a working physics engine in one crate, that's good only for games, and easy to use. Hope to focus on performance as I go.
I have playing with bevy for a while now and the only real option you have for physics is Rapier, either though bevy_rapier or heron or Physx. Physx is a no for wasm support and removing unsafe things. While rapier is truly amazing, I wanted a bevy native experence using the ecs that I can understand and hack on in one repo.
- Game Physics in One Weekend
- This Engine is based on the 3 book series, you can get all 3 for $9 on Amazon Kindle.
- Bitshifter
- The 3 books have already been ported to bevy by Bitshifter in a repo here
- Bitshifter is the developer of the glam crate, finding that repo and knowing I can use it as ref gave me the confidence to even start this.
- bevy_rapier
- BVH tutorial series by Jacco Bikker. Go check it out if bvh's interest you.
Since a primary goal is performance I am avoiding dynamic dispatching, if you're new to the concept see https://medium.com/digitalfrontiers/rust-dynamic-dispatching-deep-dive-236a5896e49b for a descent overview.