heron icon indicating copy to clipboard operation
heron copied to clipboard

feat: introduce RigidBodyDominance component

Open agg23 opened this issue 2 years ago • 1 comments

Rapier3d supports a dominance property (https://github.com/dimforge/rapier/pull/122) that is used in collisions between two dynamic RigidBodys. 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.

agg23 avatar Apr 06 '22 17:04 agg23

I could see this turning into a RigidBodyConfig component, rather than having unique components for each config option.

agg23 avatar Apr 06 '22 17:04 agg23

Heron is now discontinued. Sorry this change never got merged.

Thank you for your interest in the project and your contributions.

jcornaz avatar Nov 12 '22 21:11 jcornaz