Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Genbox opened this issue Jun 3, 2017 · 0 comments
Open

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

Genbox opened this issue Jun 3, 2017 · 0 comments

Comments

@Genbox
Copy link
Owner

Genbox commented Jun 3, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant