VelcroPhysics icon indicating copy to clipboard operation
VelcroPhysics copied to clipboard

When adding fixture with a shape, only calculate the delta mass

Open Genbox opened this issue 8 years ago • 0 comments

When we register a fixture to a body, it's shape's density has to be taken into account. We do this by iterating ALL shapes again and resetting the mass data. We could just add the density as a delta to save some computation.

Genbox avatar Jun 03 '17 10:06 Genbox