Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

PhysicsOptions

What definePhysics takes: the scene’s settings, each one optional.

Property Type Default value Description
destroyBelowHeight? number | null -500 The height in metres below which a dynamic body is destroyed, as Roblox’s FallenPartsDestroyHeight: the step emits FellOutOfWorldEvent on it first, and destroys it the next step unless it stands above the height again. null keeps every body.
gravity? readonly [number, number, number] [0, -9.8, 0] The pull on every dynamic body, in metres a second squared, as a vector, so a game pulls sideways or not at all. A character falls along its y component alone.
solverIterations? number 4, Rapier’s The solver’s passes within one 1/60 s tick, Rapier’s numSolverIterations under Unity’s name: more steady a tall stack or a long chain, at a cost on every step.