Contains persistent contact information.
More...
#include <Contact_manifold.h>
Contains persistent contact information.
At each time slice a single contact between 2 intersecting objects can be found. Over a number of time slices a group of these contacts points are built up to create a contact manifold. This manifold class handles managing whether or not new contacts should be added, when old contacts should be removed, etc. Check out "Warm Starting" http://allenchou.net/2014/01/game-physics-stability-warm-starting/
std::vector<Contact>& Dubious::Physics::Contact_manifold::contacts |
( |
| ) |
|
|
inline |
const std::vector<Contact>& Dubious::Physics::Contact_manifold::contacts |
( |
| ) |
const |
|
inline |
void Dubious::Physics::Contact_manifold::insert |
( |
const std::vector< Contact > & |
contacts | ) |
|
Inserts contacts into the manifold;.
Does the job of deciding if these contacts already exist and if so, maybe use the older ones? Or newer ones?
void Dubious::Physics::Contact_manifold::prune_old_contacts |
( |
| ) |
|
Prunes old contact points.
The manifold contains contact points from the previous time step. Some of these may have drifted out of contact, or they may have moved so far that we no longer want them in our manifold.
friend class Physics_test::Contact_manifold_test |
|
friend |
The documentation for this class was generated from the following files: