mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
box2d: fix World_CollideMover
This commit is contained in:
Vendored
+1
-1
@@ -574,7 +574,7 @@ foreign lib {
|
|||||||
|
|
||||||
// Collide a capsule mover with the world, gathering collision planes that can be fed to b2SolvePlanes. Useful for
|
// Collide a capsule mover with the world, gathering collision planes that can be fed to b2SolvePlanes. Useful for
|
||||||
// kinematic character movement.
|
// 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
|
// Enable/disable sleep. If your application does not need sleeping, you can gain some performance
|
||||||
// by disabling sleep completely at the world level.
|
// by disabling sleep completely at the world level.
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1118,7 +1118,7 @@ CastResultFcn :: #type proc "c" (shapeId: ShapeId, point: Vec2, normal: Vec2, fr
|
|||||||
|
|
||||||
// Used to collect collision planes for character movers.
|
// Used to collect collision planes for character movers.
|
||||||
// Return true to continue gathering planes.
|
// 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.
|
// These colors are used for debug draw and mostly match the named SVG colors.
|
||||||
// See https://www.rapidtables.com/web/color/index.html
|
// See https://www.rapidtables.com/web/color/index.html
|
||||||
|
|||||||
Reference in New Issue
Block a user