Falling Shatter Demo
Source reference: app-demo/.../PhysicsPlaygroundScreen.kt
What this demo shows
- Two buttons activated with
activateBody(id). - Different shard collider shapes (
BoxandCircle). - Lifecycle transitions and respawn flow.
Key APIs
FallingShatterEffectactivateBody(id)respawnBody(id)resetScene()
Minimal interaction loop
- Activate body.
- Wait for shatter and removal events.
- Respawn selected body or reset entire scene.