29#ifndef PX_CONTACTBUFFER_H
30#define PX_CONTACTBUFFER_H
32#include "PxPhysXConfig.h"
33#include "geomutils/PxContactPoint.h"
45 static const PxU32 MAX_CONTACTS = 64;
57 const PxVec3& worldNormalIn,
59 PxU32 faceIndex1 = PXC_CONTACT_NO_FACE_INDEX
64 if(count>=MAX_CONTACTS)
68 p.normal = worldNormalIn;
70 p.separation = separation;
71 p.internalFaceIndex1= faceIndex1;
77 if(count>=MAX_CONTACTS)
79 contacts[count++] = pt;
85 if(count>=MAX_CONTACTS)
87 return &contacts[count++];
3 Element vector class.
Definition PxVec3.h:50
PX_CUDA_CALLABLE PX_FORCE_INLINE float magnitude() const
returns the magnitude
Definition PxVec3.h:183
#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
PX_CUDA_CALLABLE PX_FORCE_INLINE float PxAbs(float a)
abs returns the absolute value of its argument.
Definition PxMath.h:109