Skip to content

cf_physics_draw3

Category: physics
GitHub: cute_physics.h


Draws a Box3D world's shapes and joints through CF's 3d draw API.

void cf_physics_draw3(b3WorldId world, float thickness);
Parameters Description
world The world, created from cf_physics_world_def3.
thickness Stroke width for wireframes/segments, in world units.

Remarks

Sugar over cf_physics_debug_draw3_defaults + b3World_Draw with shapes and joints on. Call it under your 3d camera stacks like any cf_draw3d_* call.

cf_physics_debug_draw3_defaults
cf_physics_world_def3
cf_physics_step3