detphys_body_abi_version | This header's version |
detphys_shape_desc_default | Default shape settings (friction 600, density 1000, restitution 0, × 1000) |
detphys_body_desc_default | Default body settings (dynamic body) |
detphys_world_add_mesh | Copies and registers a .dnshape. Returns its number (from 0)Usage: Concepts › Concave shapes and the baker |
detphys_world_mesh_count | Number of registered shapes |
detphys_world_mesh_info | Shape information (convex polygons, vertices, radius, checksum) |
detphys_world_mesh_read | Reads the convex polygons' vertices [m] for drawing |
detphys_world_add_body | Creates a body. Returns its ID (creation-order serial number) |
detphys_world_add_shape | Adds a shape to a body |
detphys_world_remove_body | Removes a body (IDs are not compacted) |
detphys_world_set_transform | Sets position and angle directly (mm, mrad) |
detphys_world_set_velocity | Sets velocity (mm/s, mrad/s) |
detphys_world_apply_force | Applies a force (mN, for the next tick only) |
detphys_world_apply_impulse | Applies an impulse (mN·s, changes velocity at once) |
detphys_world_body_count | Bodies created (including removed ones) |
detphys_world_awake_count | Awake dynamic bodies (0 = settled) |
detphys_world_get_body | Reads one body's current state |
detphys_world_read_bodies | Reads all bodies into an array (fine every frame; does not affect the simulation) |
detphys_world_body_shapes | Reads the shapes attached to a body |