aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/GeomUtils/src/contact
diff options
context:
space:
mode:
Diffstat (limited to 'PhysX_3.4/Source/GeomUtils/src/contact')
-rw-r--r--PhysX_3.4/Source/GeomUtils/src/contact/GuContactMethodImpl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/contact/GuContactMethodImpl.h b/PhysX_3.4/Source/GeomUtils/src/contact/GuContactMethodImpl.h
index 86101dc3..fb40143c 100644
--- a/PhysX_3.4/Source/GeomUtils/src/contact/GuContactMethodImpl.h
+++ b/PhysX_3.4/Source/GeomUtils/src/contact/GuContactMethodImpl.h
@@ -64,12 +64,14 @@ namespace Gu
PX_FORCE_INLINE void setManifold(void* manifold)
{
+ PX_ASSERT((size_t(manifold) & 0xF) == 0);
mCachedData = reinterpret_cast<PxU8*>(manifold);
mManifoldFlags |= IS_MANIFOLD;
}
PX_FORCE_INLINE void setMultiManifold(void* manifold)
{
+ PX_ASSERT((size_t(manifold) & 0xF) == 0);
mCachedData = reinterpret_cast<PxU8*>(manifold);
mManifoldFlags |= IS_MANIFOLD|IS_MULTI_MANIFOLD;
}