Nudge Physics
A single file, header-only 3D physics library
Loading...
Searching...
No Matches
nudge::BodyProperties Struct Reference

The BodyProperties struct. More...

#include <nudge.h>

Public Attributes

float inertia_inverse [3]
 
float mass_inverse
 
float gravity [3]
 
float friction
 

Detailed Description

The BodyProperties struct.

Member Data Documentation

◆ inertia_inverse

float nudge::BodyProperties::inertia_inverse[3]

the inertia tensor inverse (

See also
inertia) (each component is always positive or null, even if the body is kinematic)

◆ mass_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)

◆ gravity

float nudge::BodyProperties::gravity[3]

the body gravity; default value: {0,-9.82,0}

◆ friction

float nudge::BodyProperties::friction

the body friction; default value: 1.0


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