jcornaz / heron

[DISCONTINUED] An ergonomic physics API for bevy games
MIT License
292 stars 44 forks source link

feat: add support for optional PhysicsHooks #314

Closed Xion closed 1 year ago

Xion commented 1 year ago

Currently, neither heron nor heron_rapier offer an API for supplying your own PhysicsHooks. While hooks are a more advanced feature of Rapier, they are nevertheless necessary for implementing common game features, such as one-way platforms.

This PR adds an optional resource that the user can insert to provide their own hooks. These are then passed to Rapier's PhysicsPipeline. The change is extremely straightforward so I'm not sure if there are any additional tests needed.

Xion commented 1 year ago

No worries. I had actually already migrated my projects to bevy_rapier, for this & other reasons, so this PR would be purely for the benefit of other heron users. Seeing that you've declared the library discontinued, I'm perfectly OK with simply closing the PR.

Thanks for all your work on heron to date!