Skip to content

cf_physics_draw

Category: physics
GitHub: cute_physics.h


Draws a Box2D world's shapes and joints through CF's 2d draw API.

void cf_physics_draw(b2WorldId world, float thickness);
Parameters Description
world The world to draw.
thickness Stroke width for outlines/segments, in your 2d camera's world units.

Remarks

Sugar over cf_physics_debug_draw_defaults + b2World_Draw with shapes and joints on. Call it anywhere you'd call other cf_draw_* functions.

cf_physics_debug_draw_defaults
cf_physics_step