#[repr(u8)]pub enum SuperpositionState {
Active = 0,
Decohering = 1,
Superposed = 2,
Dormant = 3,
}Expand description
Superposition state for a rigid body.
Four states model the full quantum lifecycle: Active — collapsed, fully observed, full physics + GPU render Decohering — transition zone, reduced-rate physics, GPU temporal coherence Superposed — unobserved, no physics, pre-zeroed GPU indirect buffer Dormant — unobserved + sleeping, zero cost everywhere
Decoherence rings provide smooth transition between Active and Superposed, preventing visual pop-in at the observation boundary. Bodies in the Decohering ring simulate every Nth tick (configurable), providing a “fade to superposition” gradient.
Variants§
Active = 0
Near observer. Full physics every tick. Full GPU culling.
Decohering = 1
Transition zone. Physics runs every decoherence_tick_rate ticks.
GPU uses temporal coherence (cull at reduced frequency).
Superposed = 2
Far from observer. No physics. GPU indirect buffer pre-zeroed.
Dormant = 3
Sleeping + far from observer. Zero cost everywhere.
Trait Implementations§
Source§impl Clone for SuperpositionState
impl Clone for SuperpositionState
Source§fn clone(&self) -> SuperpositionState
fn clone(&self) -> SuperpositionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more