C4 Engine
C4 Engine API Documentation

PhysicsController::PurgeGeometryContacts

Defined in:  C4Physics.h
Purges all contacts with a particular geometry node.
Prototype

void PurgeGeometryContacts(const Geometry *geometry);

Parameters
geometry The geometry node for which all contacts are purged.
Description
The PurgeGeometryContacts function purges all contacts that currently exist between any rigid body and the geometry node specified by the geometry parameter. If this function is called from an overridden RigidBodyController::HandleNewGeometryContact function, then the value returned by that function should be kRigidBodyContactsBroken.
See Also

RigidBodyController::HandleNewGeometryContact

RigidBodyController::PurgeContacts