diff options
| author | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-09-15 15:41:57 -0500 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-09-15 15:41:57 -0500 |
| commit | d1c812f1162e5fdb13c215792725b2591d7428f5 (patch) | |
| tree | 407056c45c7e9320c48fca6a3697d81a061c4ea0 /PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h | |
| parent | PhysX 3.4, APEX 1.4 patch release @22121272 (diff) | |
| download | physx-3.4-d1c812f1162e5fdb13c215792725b2591d7428f5.tar.xz physx-3.4-d1c812f1162e5fdb13c215792725b2591d7428f5.zip | |
PhysX 3.4.1, APEX 1.4.1 Release @22845541v3.4.1
Diffstat (limited to 'PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h')
| -rw-r--r-- | PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h b/PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h index e06622da..b2491174 100644 --- a/PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h +++ b/PhysX_3.4/Source/GeomUtils/src/pcm/GuPersistentContactManifold.h @@ -52,6 +52,8 @@ namespace physx #define GU_MAX_MANIFOLD_SIZE 6 #define GU_MESH_CONTACT_REDUCTION_THRESHOLD 16 +#define GU_MANIFOLD_INVALID_INDEX 0xffffffff + //ML: this is used to compared with the shape's margin to decide the final tolerance used in the manifold to validate the existing contacts. //In the case of big shape and relatively speaking small triangles in the mesh, we need to take a smaller margin. This helps because the PCM @@ -317,13 +319,13 @@ public: void addBatchManifoldContacts2( const PersistentContact* manifoldPoints, const PxU32 numPoints);//max two points of contacts //This function is used in the box/convexhull full manifold contact generation(maximum 4 points). - void addBatchManifoldContacts(const PersistentContact* manifoldPoints, const PxU32 numPoints); + void addBatchManifoldContacts(const PersistentContact* manifoldPoints, const PxU32 numPoints, const PxReal toleranceLength); //This function is using the cluster algorithm to reduce contacts void reduceBatchContactsCluster(const PersistentContact* manifoldPoints, const PxU32 numPoints); //This function is called by addBatchManifoldContacts2 to reduce the manifold contacts to 2 points; void reduceBatchContacts2(const PersistentContact* manifoldPoints, const PxU32 numPoints); //This function is called by addBatchManifoldContacts to reduce the manifold contacts to 4 points - void reduceBatchContacts(const PersistentContact* manifoldPoints, const PxU32 numPoints); + void reduceBatchContacts(const PersistentContact* manifoldPoints, const PxU32 numPoints, const PxReal toleranceLength); //This function is used for incremental manifold contact reduction for box/convexhull PxU32 reduceContactsForPCM(const Ps::aos::Vec3VArg localPointA, const Ps::aos::Vec3VArg localPointB, const Ps::aos::Vec4VArg localNormalPen); |