heron
heron copied to clipboard
feat: introduce RigidBodyDominance component
Rapier3d supports a dominance property (https://github.com/dimforge/rapier/pull/122) that is used in collisions between two dynamic RigidBody
s. If one body's dominance is higher than the other, that body will not experience any forces in the collision, acting as if it has infinite mass.
This PR adds a small RigidBodyDominance
component to support setting this property. In particular, this helps address #96, allowing your player body to ignore forces exerted by other dynamic bodies colliding with it.
I could see this turning into a RigidBodyConfig
component, rather than having unique components for each config option.
Heron is now discontinued. Sorry this change never got merged.
Thank you for your interest in the project and your contributions.