Expand description
Auto-generated module structure
Structs§
- Body
- All simulation state for a single rigid body.
- Body
Arena - A generational arena storing bodies.
- Body
Snapshot - Snapshot of the complete state of a single body.
- Body
Velocity - Linear/angular velocity state for a rigid body.
- Constraint
- A constraint between two bodies (or one body and the world).
- Contact
- Represents a single contact between two bodies.
- Force
Field - A force field applied to bodies inside a given AABB.
- Frustum
- Six planes defining a view frustum (near, far, left, right, top, bottom).
- Island
- An island is a group of dynamically connected bodies that can be solved independently from the rest of the world.
- Physics
World - Top-level physics world that owns all simulation state.
- Spatial
Hash Grid - A spatial hash grid for broad-phase collision detection.
- World
Diagnostics - Summary diagnostic information about the physics world.
- World
Serial Snapshot - A human-readable snapshot of world state as a vector of lines.
- World
Snapshot - A world-level snapshot for full rollback.
- World
Stats - Compact statistics snapshot for the world.
Enums§
- Body
Mode - Simulation mode for a body.
- BvhNode
- A node in a static binary BVH built over triangle soup or body AABBs.
- Constraint
Kind - Type of constraint between two bodies.
- Force
Field Kind - Type of continuous force field applied to bodies.
- Physics
Event - Events emitted during simulation.
Functions§
- ccd_
sphere_ plane - CCD between a moving sphere and a static plane.
- ccd_
sphere_ sphere - Continuous collision detection between two moving spheres.
- constraint_
islands - Analyse the constraint graph and return body groups (islands) sorted by size.
- resolve_
contact - Resolve a single contact impulse between body A and optionally body B.