Overview
Add simulation tick or step metadata to collision events so consumers can
correlate events with deterministic game logic, replay systems, and debugging
tools.
Current State
Collision events do not currently report which simulation step produced them.
Consumers that need frame or step correlation must invent their own wrapper
state outside PhysicsWorld2D.
Scope
Goals:
- Add step or tick metadata to collision and query debug outputs
- Define whether the metadata refers to world steps, substeps, or both
- Keep event timestamps deterministic within the simulation layer
Non-Goals:
- Wall-clock timestamps
- Networking or replay systems themselves
- Full profiling instrumentation
Proposed API
pub struct CollisionEvent {
pub kind: CollisionEventKind,
pub body_a: RigidBody2D,
pub body_b: RigidBody2D,
pub simulation_step: u64,
pub substep_count: u32,
}
Acceptance Criteria
Affected Crates
lambda-rs, lambda-rs-platform
Notes
- This is most valuable if deterministic replay or rollback work is expected.
- The public API should not depend on the backend’s internal event queue
numbering.
Overview
Add simulation tick or step metadata to collision events so consumers can
correlate events with deterministic game logic, replay systems, and debugging
tools.
Current State
Collision events do not currently report which simulation step produced them.
Consumers that need frame or step correlation must invent their own wrapper
state outside
PhysicsWorld2D.Scope
Goals:
Non-Goals:
Proposed API
Acceptance Criteria
Affected Crates
lambda-rs, lambda-rs-platform
Notes
numbering.