Skip to main content

Module world

Module world 

Source
Expand description

Auto-generated module structure

Structs§

Body
All simulation state for a single rigid body.
BodyArena
A generational arena storing bodies.
BodySnapshot
Snapshot of the complete state of a single body.
BodyVelocity
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.
ForceField
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.
PhysicsWorld
Top-level physics world that owns all simulation state.
SpatialHashGrid
A spatial hash grid for broad-phase collision detection.
WorldDiagnostics
Summary diagnostic information about the physics world.
WorldSerialSnapshot
A human-readable snapshot of world state as a vector of lines.
WorldSnapshot
A world-level snapshot for full rollback.
WorldStats
Compact statistics snapshot for the world.

Enums§

BodyMode
Simulation mode for a body.
BvhNode
A node in a static binary BVH built over triangle soup or body AABBs.
ConstraintKind
Type of constraint between two bodies.
ForceFieldKind
Type of continuous force field applied to bodies.
PhysicsEvent
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.