Public Attributes | List of all members
b2MassData Struct Reference

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

#include <b2Shape.h>

Public Attributes

b2Vec2 center
 The position of the shape's centroid relative to the shape's origin. More...
 
float32 I
 The rotational inertia of the shape about the local origin. More...
 
float32 mass
 The mass of the shape, usually in kilograms. More...
 

Detailed Description

This holds the mass data computed for a shape.

Definition at line 27 of file b2Shape.h.

Member Data Documentation

b2Vec2 b2MassData::center

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

Definition at line 33 of file b2Shape.h.

float32 b2MassData::I

The rotational inertia of the shape about the local origin.

Definition at line 36 of file b2Shape.h.

float32 b2MassData::mass

The mass of the shape, usually in kilograms.

Definition at line 30 of file b2Shape.h.


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


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52