From d62d17faa311ea0371b3afd2bdf0519969fcff50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Brand=C3=A3o?= Date: Fri, 10 Jul 2026 22:10:04 -0300 Subject: [PATCH 1/2] fix missing return value of World_GetUserData --- vendor/box3d/box3d.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/box3d/box3d.odin b/vendor/box3d/box3d.odin index 0e251dddc..569ebeb2b 100644 --- a/vendor/box3d/box3d.odin +++ b/vendor/box3d/box3d.odin @@ -389,7 +389,7 @@ foreign lib { World_SetUserData :: proc(worldId: WorldId, userData: rawptr) --- // Get the user data pointer. - World_GetUserData :: proc(worldId: WorldId) --- + World_GetUserData :: proc(worldId: WorldId) -> rawptr --- // Set the friction callback. Passing NULL resets to default. World_SetFrictionCallback :: proc(worldId: WorldId, callback: FrictionCallback) --- From 6a73a4ece79d963832539fa4f24bd266861209c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Brand=C3=A3o?= Date: Fri, 10 Jul 2026 22:16:40 -0300 Subject: [PATCH 2/2] fixes missing return value of GetUserData functions --- vendor/box3d/box3d.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/box3d/box3d.odin b/vendor/box3d/box3d.odin index 569ebeb2b..e42a7b878 100644 --- a/vendor/box3d/box3d.odin +++ b/vendor/box3d/box3d.odin @@ -638,7 +638,7 @@ foreign lib { Body_SetUserData :: proc(bodyId: BodyId, userData: rawptr) --- // Get the user data stored in a body - Body_GetUserData :: proc(bodyId: BodyId) --- + Body_GetUserData :: proc(bodyId: BodyId) -> rawptr --- // Get the world position of a body. This is the location of the body origin. Body_GetPosition :: proc(bodyId: BodyId) -> Pos --- @@ -971,7 +971,7 @@ foreign lib { // Get the user data for a shape. This is useful when you get a shape id // from an event or query. - Shape_GetUserData :: proc(shapeId: ShapeId) --- + Shape_GetUserData :: proc(shapeId: ShapeId) -> rawptr --- // Set the mass density of a shape, usually in kg/m^3. // This will optionally update the mass properties on the parent body. @@ -1178,7 +1178,7 @@ foreign lib { Joint_SetUserData :: proc(jointId: JointId, userData: rawptr) --- // Get the user data on a joint - Joint_GetUserData :: proc(jointId: JointId) --- + Joint_GetUserData :: proc(jointId: JointId) -> rawptr --- // Wake the bodies connect to this joint Joint_WakeBodies :: proc(jointId: JointId) ---