36#include "foundation/PxVec3.h"
37#include "foundation/PxAssert.h"
38#include "PxNodeIndex.h"
47#pragma warning(disable: 4324)
50#define PXC_CONTACT_NO_FACE_INDEX 0xffffffff
61 PxReal mInvMassScale0;
62 PxReal mInvInertiaScale0;
63 PxReal mInvMassScale1;
64 PxReal mInvInertiaScale1;
76 eHAS_FACE_INDICES = 1,
78 eFORCE_NO_RESPONSE = 4,
79 eHAS_MODIFIED_MASS_RATIOS = 8,
80 eHAS_TARGET_VELOCITY = 16,
81 eHAS_MAX_IMPULSE = 32,
82 eREGENERATE_PATCHES = 64,
83 eCOMPRESSED_MODIFIED_CONTACT = 128
234 eCOMPRESSED_MODIFIABLE_STREAM
318 bool compressedModify =
false;
319 bool response =
false;
320 bool indices =
false;
330 compressedModify = (patches->
internalFlags & PxContactPatch::eCOMPRESSED_MODIFIED_CONTACT) != 0;
345 mStreamFormat = compressedModify ? eCOMPRESSED_MODIFIABLE_STREAM : modify ? eMODIFIABLE_STREAM : eSIMPLE_STREAM;
394 if(nextContactIndex < patch->nbContacts)
419 PX_ASSERT(nextContactIndex < patch->nbContacts);
435 return getContactPatch().normal;
444 return patch->mMassModification.mInvMassScale0;
453 return patch->mMassModification.mInvMassScale1;
462 return patch->mMassModification.mInvInertiaScale0;
471 return patch->mMassModification.mInvInertiaScale1;
489 return mStreamFormat != eSIMPLE_STREAM ? getExtendedContact().targetVelocity :
zero;
516 return PXC_CONTACT_NO_FACE_INDEX;
561 return getContactPatch().
damping;
579 return PxU16(getContactPatch().materialIndex0);
588 return PxU16(getContactPatch().materialIndex1);
597 PX_ASSERT(this->nextPatchIndex == 0 && this->nextContactIndex == 0);
599 PxU32 numToAdvance = initialIndex;
601 if(numToAdvance == 0)
614 if(numToAdvance <= patchSize)
622 numToAdvance -= patchSize;
639 PX_CUDA_CALLABLE
PX_FORCE_INLINE const PxExtendedContact& getExtendedContact()
const
642 return *
static_cast<const PxExtendedContact*
>(
contact);
PxActor is the base class for the main simulation objects in the physics SDK.
Definition PxActor.h:201
PxNodeIndex.
Definition PxNodeIndex.h:51
3 Element vector class.
Definition PxVec3.h:50
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
#define PX_INLINE
Definition PxPreprocessor.h:320
#define PX_DEPRECATED
Definition PxPreprocessor.h:418
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Struct for specifying mass modification for a pair of rigids.
Definition PxContact.h:60