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

Missing interface for b2Shape.ComputeMass #67

Open
2 tasks
briansemrau opened this issue Apr 5, 2021 · 0 comments
Open
2 tasks

Missing interface for b2Shape.ComputeMass #67

briansemrau opened this issue Apr 5, 2021 · 0 comments
Labels
missing feature A missing feature that is expected to exist

Comments

@briansemrau
Copy link
Owner

The functionality of b2Shape.ComputeMass should be exposed in Box2DShape.

Implement as:

  • Vector2 Box2DShape::get_center_of_mass()
  • real_t Box2DShape::get_mass(real_t density)

Optionally, we could also redundantly expose this in Box2DFixture (without the density parameter).

@briansemrau briansemrau added the missing feature A missing feature that is expected to exist label Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing feature A missing feature that is expected to exist
Projects
None yet
Development

No branches or pull requests

1 participant