Skip to content

Missing interface for b2Shape.ComputeMass #67

Description

@briansemrau

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing featureA missing feature that is expected to exist

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions