Skip to content

Events And Snapshots

This page is kept for older links. Full runtime details now live in:

Quick summary

PhysicsScene emits typed events through onEvent, while PhysicsSceneState exposes:

  • bodySnapshots: StateFlow<Map<PhysicsId, PhysicsBodySnapshot>>
  • shardSnapshots: StateFlow<List<PhysicsShardSnapshot>>

Use resetScene() for global reset and respawnBody(id) for per-body recovery.