detphys_abi_version | This header's version (DETPHYS_ABI_VERSION). Compare with >= at startup |
detphys_build_info | One line of build information (compiler, CPU, floating-point settings, SIMD), for comparison logs |
detphys_world_desc_default | Default world settings (60 Hz, 4 substeps, gravity (0, −10000) mm/s²) |
detphys_world_create | Creates a world (NULL = defaults). Same as detphys_world_create_ex(desc, NULL) |
detphys_world_destroy | Destroys a world |
detphys_world_step | Advances one tick |
detphys_world_tick | Current tick number (0 right after creation) |
detphys_world_hash | State hash (FNV-1a 64 over the tick, body count and raw bits of every body's position, rotation, velocity and angular velocity)Usage: Concepts › Ticks |
detphys_world_options_default | Default worker settings (1 worker, core pool, spin 4000, 4 bases) |
detphys_world_create_ex | Creates a world with settings and worker settings |
detphys_world_get_options | Reads the worker settings used at creation |
detphys_world_snapshot_size | Counts the size of a snapshot of the current state (dyn / full) |
detphys_world_snapshot_write | Writes a snapshot into a caller buffer (takes a base here if a dyn has none) |
detphys_world_snapshot_restore | Restores a snapshot (the tick and the body list come back too; restoring a full one always starts a new shape version, so the next dyn takes a new base) |
detphys_snapshot_read_info | Reads a snapshot image header (no world needed) |
detphys_world_get_snapshot_stats | Bases held, shape version, write counts and so on |