#include <contact.h>
Public Member Functions | |
| void | calculatePenetration () |
Public Attributes | |
| Vector | normal |
| Normal in World coordinates. | |
| Vector | position |
| Position in World coordinates. | |
| float | Pn |
| Accumulated normal impulse. | |
| float | Pnb |
| Accumulated normal bias impulse. | |
| Vector | frictionImpulse |
| Accumulated friction impulse. | |
| Vector | relativeVelocity |
| Relative velocity in contact coordinates. | |
| int | featureID [2] |
| Feature ID; Either an edgeID or vertexID (in 2D). | |
| void Contact::calculatePenetration | ( | ) | [inline] |
The idea is that rather than generating contacts fresh each frame, you keep them around and update them for the new positions/velocities which should be faster to calculate
1.5.6