aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp')
-rw-r--r--PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp b/PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp
index fde841d5..de7bc0b4 100644
--- a/PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp
+++ b/PhysX_3.4/Source/SimulationController/src/particles/ScParticlePacketShape.cpp
@@ -23,7 +23,7 @@
// components in life support devices or systems without express written approval of
// NVIDIA Corporation.
//
-// Copyright (c) 2008-2017 NVIDIA Corporation. All rights reserved.
+// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
@@ -171,7 +171,13 @@ void Sc::ParticlePacketShape::createLowLevelVolume()
PX_ASSERT(getBounds().isFinite());
getScene().getBoundsArray().setBounds(getBounds(), getElementID());
+#ifdef BP_FILTERING_USES_TYPE_IN_GROUP
+ const PxU32 group = Bp::FilterGroup::ePARTICLES;
+ const PxU32 type = Bp::FilterType::DYNAMIC;
+ addToAABBMgr(0, Bp::FilterGroup::Enum((group<<2)|type), false);
+#else
addToAABBMgr(0, Bp::FilterGroup::ePARTICLES, false);
+#endif
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////