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

The Contact struct. More...

#include <nudge.h>

Public Attributes

float position [3]
 
float penetration
 
float normal [3]
 
float friction
 

Detailed Description

The Contact struct.

Member Data Documentation

◆ position

float nudge::Contact::position[3]

position of the contact in world space coordinates

◆ penetration

float nudge::Contact::penetration

amount of contact penetration

◆ normal

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

◆ friction

float nudge::Contact::friction

contact friction


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