From 19a5c0fbe97d3f8baef770eb533834edcdaf64ef Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Thu, 20 Feb 2025 13:28:15 +0000 Subject: [PATCH] Fix: b2CollideSegmentAndCapsule should pass manifold parameter to b2CollideCapsules Also, manifold.clear() should not accept a parameter. --- src/manifold_c.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manifold_c.js b/src/manifold_c.js index 08c4f5a..6d58a86 100644 --- a/src/manifold_c.js +++ b/src/manifold_c.js @@ -773,7 +773,7 @@ export function b2CollideSegmentAndCapsule(segmentA, xfA, capsuleB, xfB, manifol constCapsule.center2 = segmentA.point2; constCapsule.radius = 0; - return b2CollideCapsules(constCapsule, xfA, capsuleB, xfB); + return b2CollideCapsules(constCapsule, xfA, capsuleB, xfB, manifold); } /** @@ -1970,7 +1970,7 @@ export function b2CollideChainSegmentAndPolygon(chainSegmentA, xfA, polygonB, xf { if (b2Dot(n2, n) < b2Dot(normal1, n)) { - return manifold.clear(0); + return manifold.clear(); } }