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

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

Detailed Description

This holds the mass data computed for a shape.

Definition at line 33 of file b2_shape.h.

Member Data Documentation

◆ center

b2Vec2 b2MassData::center

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

Definition at line 39 of file b2_shape.h.

◆ I

float b2MassData::I

The rotational inertia of the shape about the local origin.

Definition at line 42 of file b2_shape.h.

◆ mass

float b2MassData::mass

The mass of the shape, usually in kilograms.

Definition at line 36 of file b2_shape.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22