Skip to main content

Module physics

Module physics 

Source
Expand description

The rigid-body simulation driver: it builds a simulation from the world’s physics content at init, steps it on the fixed tick, and writes the results back as component data.

The simulation itself is concinnity_physics::Simulation, whose vocabulary is [f32; 3] / Euler-degree data addressed by an opaque BodyHandle. This module holds the driver around it: prop bodies, character rigs, probes, contact shaping, and layer resolution.

Nothing here reads a clock, a file, or a device. The one thing only a host can supply is threads, which it lends through PhysicsFanout; a world with none steps on the calling thread.

Structs§

PhysicsSystem
Rigid-body simulation behavior. Constructed internally by World::start from the world’s PhysicsConfig; never a declarable asset.
SerialFanout
The fan-out for a host with no threads to lend: every step runs on the calling thread.

Traits§

PhysicsFanout
A host’s way of lending the simulation the threads it has.