Defined in include/PxImmediateMode.h

class PxContactRecorder

Callback class to record contact points produced by immediate::PxGenerateContacts.

Public Functions

virtual bool recordContacts(const PxContactPoint *contactPoints, const PxU32 nbContacts, const PxU32 index) = 0

Method to record new contacts.

  • contactPoints[in] The contact points produced

  • nbContacts[in] The number of contact points produced

  • index[in] The index of this pair. This is an index from 0-N-1 identifying which pair this relates to from within the array of pairs passed to PxGenerateContacts


a boolean to indicate if this callback successfully stored the contacts or not.

inline virtual ~PxContactRecorder()