Skip to main content Module simulation Copy item path Source BodyId Unique body identifier. Contact Contact point between two bodies. DreamSpace DreamSpace — incremental spatial index with dirty-cell pair generation. PhysicsWorld CPU-deterministic physics simulation world. RayHit Raycast hit result. RigidBody Rigid body state. SleepConfig Configuration for body sleeping thresholds. SpatialHashGrid Spatial hash grid for broadphase pair generation.
Replaces O(n^2) all-pairs with O(n) expected-case neighbour lookups. SuperpositionObserver Observer position and decoherence ring radii. SweepAndPrune Sweep-and-Prune broadphase. Sorts bodies by X-axis AABB min bound,
then sweeps to find overlapping intervals. Y/Z overlap checked inline.
Pre-allocates all Vecs for Clean Compute (zero per-step allocation). CollisionShape Collision shape for narrowphase detection. SuperpositionState Superposition state for a rigid body.