From d7ec80f18486638a3c357de53fce397dd254a081 Mon Sep 17 00:00:00 2001 From: Matthew Gretton Date: Tue, 11 Feb 2025 06:42:11 +1100 Subject: [PATCH] Fix to b2World_CastRayClosest --- src/world_c.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world_c.js b/src/world_c.js index 91111be..25d50af 100644 --- a/src/world_c.js +++ b/src/world_c.js @@ -2620,6 +2620,7 @@ export function b2World_CastRayClosest(worldId, origin, translation, filter) const worldContext = new WorldRayCastContext(); worldContext.world = world; worldContext.fcn = b2RayCastClosestFcn; + worldContext.filter = filter; worldContext.fraction = 1.0; worldContext.userContext = result;