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§
- Debug
Line - Internal solver debug line drawn at the end of
world_draw. (b3DebugLine) - Debug
Point - Internal solver debug point drawn at the end of
world_draw. (b3DebugPoint) - Debug
Shape - 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§
- Debug
Material - 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§
- Debug
Draw - Debug drawing callbacks and options (
b3DebugDraw).
Functions§
- make_
debug_ color - Pack an RGB color with a material preset. (
b3MakeDebugColor)
Type Aliases§
- Create
Debug Shape Callback - WorldDef / World callback that builds a GPU (or test) shape handle.
(
b3CreateDebugShapeCallback) - Destroy
Debug Shape Callback - Destroys a user shape handle when the physics shape is destroyed or changed.
(
b3DestroyDebugShapeCallback)