box2d 3.0.0
A 2D physics engine for games
 
Loading...
Searching...
No Matches
b2MassData Struct Reference

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

#include <geometry.h>

Collaboration diagram for b2MassData:

Data Fields

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.
 
float minExtent
 TODO_ERIN remove geometry info from this.
 
float maxExtent
 Distance from shape origin to furthest point on perimeter.
 

Detailed Description

This holds the mass data computed for a shape.

Field Documentation

◆ center

b2Vec2 b2MassData::center

The position of the shape's centroid relative to the shape's origin.

◆ I

float b2MassData::I

The rotational inertia of the shape about the local origin.

◆ mass

float b2MassData::mass

The mass of the shape, usually in kilograms.

◆ maxExtent

float b2MassData::maxExtent

Distance from shape origin to furthest point on perimeter.

◆ minExtent

float b2MassData::minExtent

TODO_ERIN remove geometry info from this.

Distance from shape centroid to closest point on perimeter.


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