Browse Source

Forgot to pass shape filter to sCollideShapeVsShape

Jorrit Rouwe 6 months ago
parent
commit
17009ab1e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Samples/Tests/General/SimCollideBodyVsBodyTest.cpp

+ 1 - 1
Samples/Tests/General/SimCollideBodyVsBodyTest.cpp

@@ -92,7 +92,7 @@ static void sCollideBodyVsBodyPerLeaf(const Body &inBody1, const Body &inBody2,
 				if (leaf1.mBounds.Overlaps(leaf2.mBounds))
 				if (leaf1.mBounds.Overlaps(leaf2.mBounds))
 				{
 				{
 					LeafCollector collector;
 					LeafCollector collector;
-					CollisionDispatch::sCollideShapeVsShape(leaf1.mShape, leaf2.mShape, leaf1.mScale, leaf2.mScale, leaf1.mCenterOfMassTransform, leaf2.mCenterOfMassTransform, leaf1.mSubShapeIDCreator, leaf2.mSubShapeIDCreator, ioCollideShapeSettings, collector);
+					CollisionDispatch::sCollideShapeVsShape(leaf1.mShape, leaf2.mShape, leaf1.mScale, leaf2.mScale, leaf1.mCenterOfMassTransform, leaf2.mCenterOfMassTransform, leaf1.mSubShapeIDCreator, leaf2.mSubShapeIDCreator, ioCollideShapeSettings, collector, inShapeFilter);
 					if (collector.HadHit())
 					if (collector.HadHit())
 						ioCollector.AddHit(collector.mHit);
 						ioCollector.AddHit(collector.mHit);
 				}
 				}