detphys3d_abi_version | This header's version (DETPHYS3D_ABI_VERSION) |
detphys3d_world_desc_default | Default world settings (60 Hz, 4 substeps, gravity (0, −10000, 0) mm/s², 1 worker, the core's pool) |
detphys3d_shape_desc_default | Default shape settings (friction 600, density 1000000 = water, restitution 0, × 1000) |
detphys3d_body_desc_default | Default body settings (dynamic body) |
detphys3d_world_create | Creates a world (NULL = defaults). NULL on failure |
detphys3d_world_destroy | Destroys it |
detphys3d_world_get_desc | Reads the settings it was created with |
detphys3d_world_step | Advances one tick |
detphys3d_world_step_n | Advances count ticks (fewer calls when re-simulating after a rollback) |
detphys3d_world_tick | Current tick number |
detphys3d_world_hash | State hash (FNV-1a 64 over tick, body count and each body's position 3, quaternion 4, velocity 3, angular velocity 3 raw bits)Usage: Concepts › Ticks |
detphys3d_world_engine_hash | Box3D's own state hash (for checking)Usage: Desyncs › 3D worlds and sessions |
detphys3d_world_get_stats | Bodies, awake count, contacts, hull count and more |
detphys3d_world_add_hull | Builds and registers a convex hull from integer points (units_per_meter, 0 = mm). Returns its index; the same contents return the earlier indexUsage: Concepts › 3D |
detphys3d_world_hull_count | Number of registered hulls |
detphys3d_world_hull_info | Hull information (vertex, face and triangle counts, radius, checksum) |
detphys3d_world_hull_read | Reads a hull's vertices [m] and triangle indices for drawing |
detphys3d_world_add_body | Creates a body. Returns its ID (a serial number in creation order) |
detphys3d_world_add_shape | Adds a shape to a body (compound bodies)Usage: Concepts › Moving concave shapes (3D) |
detphys3d_world_remove_body | Removes a body (IDs are not reused) |
detphys3d_world_set_transform | Sets position and orientation directly (mm, integer quaternion) |
detphys3d_world_set_velocity | Sets velocity and angular velocity (mm/s, mrad/s) |
detphys3d_world_apply_force | Applies a force (mN, for the next tick only) |
detphys3d_world_apply_torque | Applies a torque (mN·m, for the next tick only) |
detphys3d_world_apply_impulse | Applies an impulse (mN·s, changes the velocity at once) |
detphys3d_world_apply_angular_impulse | Applies an angular impulse (mN·m·s) |
detphys3d_world_body_count | Number of bodies created (removed ones included) |
detphys3d_world_get_body | Reads one body's current state |
detphys3d_world_read_bodies | Reads all bodies into an array (fine to call every frame) |
detphys3d_world_read_transforms | Light readback for drawing only (7 floats per body: position xyz [m], quaternion)Usage: Concepts › 3D |
detphys3d_world_body_shapes | Reads the shapes attached to a body |
detphys3d_world_snapshot_size | Measures the current snapshot size (default DETPHYS3D_SNAPSHOT_DEFAULT = FULL) |
detphys3d_world_snapshot_write | Writes a snapshot into a caller buffer |
detphys3d_world_snapshot_restore | Restores a snapshot (the tick and body list too; registered hulls are kept; restoring a full one always starts a new shape version) |
detphys3d_snapshot_read_info | Reads an image header (no world needed) |
detphys3d_world_get_snapshot_stats | Snapshot status |
detphys3d_world_transfer_size | Measures the state to send to another peer (transfer) |
detphys3d_world_transfer_write | Writes a transfer (full image + shape registry contents + hull table) |
detphys3d_world_transfer_restore | Restores a transfer (written by another world or device; rebuilds the registry or hull table first if they differ) |
detphys3d_transfer_read_info | Reads a transfer header (and verifies the checksum) |