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;