This struct is passed to b3World_Draw to draw a debug view of the simulation world. More...
#include <types.h>

Data Fields | |
| bool(* | DrawShapeFcn )(void *userShape, b3WorldTransform transform, b3HexColor color, void *context) |
| Draws a shape and returns true if drawing should continue. | |
| void(* | DrawSegmentFcn )(b3Pos p1, b3Pos p2, b3HexColor color, void *context) |
| Draw a line segment. | |
| void(* | DrawTransformFcn )(b3WorldTransform transform, void *context) |
| Draw a transform. Choose your own length scale. | |
| void(* | DrawPointFcn )(b3Pos p, float size, b3HexColor color, void *context) |
| Draw a point. | |
| void(* | DrawSphereFcn )(b3Pos p, float radius, b3HexColor color, float alpha, void *context) |
| Draw a sphere. | |
| void(* | DrawCapsuleFcn )(b3Pos p1, b3Pos p2, float radius, b3HexColor color, float alpha, void *context) |
| Draw a capsule. | |
| void(* | DrawBoundsFcn )(b3AABB aabb, b3HexColor color, void *context) |
| Draw a bounding box. | |
| void(* | DrawBoxFcn )(b3Vec3 extents, b3WorldTransform transform, b3HexColor color, void *context) |
| Draw an oriented box. | |
| void(* | DrawStringFcn )(b3Pos p, const char *s, b3HexColor color, void *context) |
| Draw a string in world space. | |
| b3AABB | drawingBounds |
| World bounds to use for debug draw. | |
| float | forceScale |
| Scale to use when drawing forces. | |
| float | jointScale |
| Global scaling for joint drawing. | |
| bool | drawShapes |
| Option to draw shapes. | |
| bool | drawJoints |
| Option to draw joints. | |
| bool | drawJointExtras |
| Option to draw additional information for joints. | |
| bool | drawBounds |
| Option to draw the bounding boxes for shapes. | |
| bool | drawMass |
| Option to draw the mass and center of mass of dynamic bodies. | |
| bool | drawBodyNames |
| Option to draw body names. | |
| bool | drawContacts |
| Option to draw contact points. | |
| int | drawAnchorA |
| Draw contact anchor A or B. | |
| bool | drawGraphColors |
| Option to visualize the graph coloring used for contacts and joints. | |
| bool | drawContactFeatures |
| Option to draw contact features. | |
| bool | drawContactNormals |
| Option to draw contact normals. | |
| bool | drawContactForces |
| Option to draw contact normal forces. | |
| bool | drawFrictionForces |
| Option to draw contact friction forces. | |
| bool | drawIslands |
| Option to draw islands as bounding boxes. | |
| void * | context |
| User context that is passed as an argument to drawing callback functions. | |
This struct is passed to b3World_Draw to draw a debug view of the simulation world.
Callbacks receive world coordinates. In large world mode the translation is double precision so it stays accurate far from the origin. Shift into your own camera frame inside the callbacks.