Box2D: b2MassData Struct Reference

| Box2D 2.4.1 A 2D physics engine for games

Loading...
Searching...
No Matches
Public Attributes | List of all members
b2MassData Struct Reference

This holds the mass data computed for a shape. More...

`#include <b2_shape.h>`

## Public Attributes
float | mass
| The mass of the shape, usually in kilograms.
b2Vec2 | center
| The position of the shape's centroid relative to the shape's origin.
float | I
| The rotational inertia of the shape about the local origin.

## Detailed Description

This holds the mass data computed for a shape.

The documentation for this struct was generated from the following file:

- /build/box2d/src/box2d-2.4.1/include/box2d/b2_shape.h