Chipmunk2D Pro API Reference
7.0.1
|
A struct that wraps up the important collision data for an arbiter. More...
#include <cpArbiter.h>
Public Attributes | |
int | count |
The number of contact points in the set. | |
cpVect | normal |
The normal of the collision. | |
cpVect | pointA |
The position of the contact on the surface of each shape. | |
cpFloat | distance |
Penetration distance of the two shapes. More... | |
A struct that wraps up the important collision data for an arbiter.
cpFloat cpContactPointSet::distance |
Penetration distance of the two shapes.
Overlapping means it will be negative. This value is calculated as cpvdot(cpvsub(point2, point1), normal) and is ignored by cpArbiterSetContactPointSet().