bevy_xpbd
bevy_xpbd copied to clipboard
Sensors and mass properties
Objective
I was surprised to find that a sensor added as a child of a dynamic body affected the parent's behavior. Even with the density set to zero the difference was noticeable.
Solution
- Make the default mass and density zero for sensors.
and/or:
- Ignore sensors when updating parents' mass properties.
Maybe instead of adding a special case for sensors (which would be a breaking change), a note should be added to the sensor documentation indicating you need to set the mass properties to zero if you don't want to affect any parents?
Changelog
tbd
Migration Guide
tbd