|
Nudge Physics
A single file, header-only 3D physics library
|
#include <nudge.h>
Public Attributes | |
| float | position [3] |
| float | penetration |
| float | normal [3] |
| float | friction |
The Contact struct.
| float nudge::Contact::position[3] |
position of the contact in world space coordinates
| float nudge::Contact::penetration |
amount of contact penetration
| float nudge::Contact::normal[3] |
contact normal directed from the first body (c->contact_data.bodies.a) to the second body (c->contact_data.bodies.b); it seems to be normalized AFAICS
| float nudge::Contact::friction |
contact friction