Nudge Physics
A single file, header-only 3D physics library
|
The BodyProperties struct. More...
#include <nudge.h>
Public Attributes | |
float | inertia_inverse [3] |
float | mass_inverse |
float | gravity [3] |
float | friction |
The BodyProperties struct.
float nudge::BodyProperties::inertia_inverse[3] |
the inertia tensor inverse (
float nudge::BodyProperties::mass_inverse |
the inverse of the mass of the body (it's always positive or null, even if the body is kinematic)
float nudge::BodyProperties::gravity[3] |
the body gravity; default value: {0,-9.82,0}
float nudge::BodyProperties::friction |
the body friction; default value: 1.0