Skip to main content

Module debug_draw

Module debug_draw 

Source
Expand description

Debug draw interface (b3DebugDraw), color palette (b3HexColor), and debug-material packing from types.h / types.c.

SPDX-FileCopyrightText: 2025 Erin Catto SPDX-License-Identifier: MIT

Structs§

DebugLine
Internal solver debug line drawn at the end of world_draw. (b3DebugLine)
DebugPoint
Internal solver debug point drawn at the end of world_draw. (b3DebugPoint)
DebugShape
Geometry snapshot passed to CreateDebugShapeCallback. (b3DebugShape)
HexColor
Color for debug drawing, packed 0xRRGGBB (b3HexColor). C treats the enum as a plain integer (shape custom colors are arbitrary u32 values), so the Rust port is a newtype over u32 with the named palette as associated constants.

Enums§

DebugMaterial
Debug draw material preset packed into the high byte of a color. (b3DebugMaterial)

Constants§

DEBUG_LINE_CAPACITY
(B3_DEBUG_LINE_CAPACITY)
DEBUG_POINT_CAPACITY
(B3_DEBUG_POINT_CAPACITY)

Traits§

DebugDraw
Debug drawing callbacks and options (b3DebugDraw).

Functions§

make_debug_color
Pack an RGB color with a material preset. (b3MakeDebugColor)

Type Aliases§

CreateDebugShapeCallback
WorldDef / World callback that builds a GPU (or test) shape handle. (b3CreateDebugShapeCallback)
DestroyDebugShapeCallback
Destroys a user shape handle when the physics shape is destroyed or changed. (b3DestroyDebugShapeCallback)