Skip to content

cf_physics_debug_draw_defaults

Category: physics
GitHub: cute_physics.h


Returns a b2DebugDraw whose callbacks render through CF's 2d draw API.

b2DebugDraw cf_physics_debug_draw_defaults(float thickness);
Parameters Description
thickness Stroke width for outlines/segments, in your 2d camera's world units.

Remarks

All draw callbacks are wired (polygons, circles, capsules, segments, transforms, points, strings) and drawShapes is enabled; toggle any other b2DebugDraw option before handing it to b2World_Draw. Shapes render into the current 2d camera, layer, and color state like any other cf_draw_* call. For the common case see cf_physics_draw.

cf_physics_draw
cf_physics_step