|
Chipmunk2D Pro API Reference
7.0.0
|
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. | |
| struct { | |
| cpVect pointA | |
| The position of the contact on the surface of each shape. | |
| cpFloat distance | |
| Penetration distance of the two shapes. More... | |
| } | points [2] |
| The array of contact points. | |
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().
1.8.13