diff options
| author | Leandro Motta Barros <lmb@stackedboxes.org> | 2025-10-15 13:51:26 -0300 |
|---|---|---|
| committer | Leandro Motta Barros <lmb@stackedboxes.org> | 2025-10-15 13:51:26 -0300 |
| commit | bc1c85604924e39465a793a7091b5fd1d64bd637 (patch) | |
| tree | 46c16e380b578cd59505466d4c76dad7b04e387e /vendor | |
| parent | 4b8751bebdbf40528c2af8ff5a4ef38c1ab429cc (diff) | |
Fix return types for vendor:box2d callbacks
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/box2d/types.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/box2d/types.odin b/vendor/box2d/types.odin index c4ef0cd0c..6464d761b 100644 --- a/vendor/box2d/types.odin +++ b/vendor/box2d/types.odin @@ -41,13 +41,13 @@ FinishTaskCallback :: #type proc "c" (userTask: rawptr, userContext: rawptr) // from a worker thread. // @warning This function should not attempt to modify Box2D state or user application state. // @ingroup world -FrictionCallback :: #type proc "c" (frictionA: f32, userMaterialIdA: i32, frictionB: f32, userMaterialIdB: i32) +FrictionCallback :: #type proc "c" (frictionA: f32, userMaterialIdA: i32, frictionB: f32, userMaterialIdB: i32) -> f32 // Optional restitution mixing callback. This intentionally provides no context objects because this is called // from a worker thread. // @warning This function should not attempt to modify Box2D state or user application state. // @ingroup world -RestitutionCallback :: #type proc "c" (restitutionA: f32, userMaterialIdA: i32, restitutuionB: f32, userMaterialIdB: i32) +RestitutionCallback :: #type proc "c" (restitutionA: f32, userMaterialIdA: i32, restitutionB: f32, userMaterialIdB: i32) -> f32 // Result from b2World_RayCastClosest // @ingroup world |