Skip to content

Commit cfb5daa

Browse files
committed
Those aren't necessarily triangles!
1 parent 9c0001c commit cfb5daa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BepuPhysics/CollisionDetection/SweepTasks/CompoundHomogeneousCompoundSweepTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ protected unsafe override bool PreorderedTypeSweep<TSweepFilter>(
4343
compoundB.GetPosedLocalChild(triangleIndex, out var childB, out var childPoseB);
4444
ref var compoundChild = ref compoundA.GetChild(childOverlaps.ChildIndex);
4545
var compoundChildType = compoundChild.ShapeIndex.Type;
46-
var task = sweepTasks.GetTask(compoundChildType, Triangle.Id);
46+
var task = sweepTasks.GetTask(compoundChildType, TChildShapeB.TypeId);
4747
shapes[compoundChildType].GetShapeData(compoundChild.ShapeIndex.Index, out var compoundChildShapeData, out _);
4848
if (task.Sweep(
4949
compoundChildShapeData, compoundChildType, compoundChild.AsPose(), orientationA, velocityA,
50-
Unsafe.AsPointer(ref childB), Triangle.Id, childPoseB, offsetB, orientationB, velocityB,
50+
Unsafe.AsPointer(ref childB), TChildShapeB.TypeId, childPoseB, offsetB, orientationB, velocityB,
5151
maximumT, minimumProgression, convergenceThreshold, maximumIterationCount,
5252
out var t0Candidate, out var t1Candidate, out var hitLocationCandidate, out var hitNormalCandidate))
5353
{

0 commit comments

Comments
 (0)