From 6c1a3c4f0c790b8b79924827eb1d49c08aaa083f Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Fri, 25 Apr 2025 18:24:41 +0200 Subject: [PATCH] box2d: fix World_CollideMover --- vendor/box2d/box2d.odin | 2 +- vendor/box2d/types.odin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/box2d/box2d.odin b/vendor/box2d/box2d.odin index abff1efcf..640f430b8 100644 --- a/vendor/box2d/box2d.odin +++ b/vendor/box2d/box2d.odin @@ -574,7 +574,7 @@ foreign lib { // Collide a capsule mover with the world, gathering collision planes that can be fed to b2SolvePlanes. Useful for // kinematic character movement. - World_CollideMover :: proc(worldId: WorldId, #by_ptr mover: Capsule, filter: QueryFilter, fcn: CastResultFcn, ctx: rawptr) --- + World_CollideMover :: proc(worldId: WorldId, #by_ptr mover: Capsule, filter: QueryFilter, fcn: PlaneResultFcn, ctx: rawptr) --- // Enable/disable sleep. If your application does not need sleeping, you can gain some performance // by disabling sleep completely at the world level. diff --git a/vendor/box2d/types.odin b/vendor/box2d/types.odin index b12410be2..c4ef0cd0c 100644 --- a/vendor/box2d/types.odin +++ b/vendor/box2d/types.odin @@ -1118,7 +1118,7 @@ CastResultFcn :: #type proc "c" (shapeId: ShapeId, point: Vec2, normal: Vec2, fr // Used to collect collision planes for character movers. // Return true to continue gathering planes. -PlaneResultFcn :: #type proc "c" (shapeId: ShapeId, plane: ^PlaneResult, ctx: rawptr) +PlaneResultFcn :: #type proc "c" (shapeId: ShapeId, plane: ^PlaneResult, ctx: rawptr) -> bool // These colors are used for debug draw and mostly match the named SVG colors. // See https://www.rapidtables.com/web/color/index.html