29#ifndef PXS_CONTACT_MANAGER_STATE_H
30#define PXS_CONTACT_MANAGER_STATE_H
32#include "foundation/PxSimpleTypes.h"
54 eHAS_NO_TOUCH = (1 << 0),
55 eHAS_TOUCH = (1 << 1),
57 eREQUEST_CONSTRAINTS = (1 << 3),
58 eHAS_CCD_RETOUCH = (1 << 4),
61 eDIRTY_MANAGER = (1 << 5),
62 eTOUCH_KNOWN = eHAS_NO_TOUCH | eHAS_TOUCH,
63 eSTATIC_OR_KINEMATIC = (1 << 6)
68 struct PX_ALIGN_PREFIX(16) PxsContactManagerOutput
72 PxReal* contactForces;
85 return reinterpret_cast<PxU32*
>(contactForces + nbContacts);
90 struct PX_ALIGN_PREFIX(4) PxsContactManagerOutputCounts
98 struct PX_ALIGN_PREFIX(4) PxsContactManagerPersistency
101 PxU8 mNbFrictionPatches;
102 PxU8 mNbPrevFrictionPatches;
104 } PX_ALIGN_SUFFIX(4);
106 struct PX_ALIGN_PREFIX(8) PxsTorsionalFrictionData
108 PxReal mTorsionalPatchRadius;
109 PxReal mMinTorsionalRadius;
111 PxsTorsionalFrictionData() {}
112 PxsTorsionalFrictionData(
const PxReal patchRadius,
const PxReal minPatchRadius) :
113 mTorsionalPatchRadius(patchRadius), mMinTorsionalRadius(minPatchRadius) {}
114 } PX_ALIGN_SUFFIX(8);
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39