Physics · interface
StallInput
What the consumer knows about this tick that the geometry cannot say.
Explained in Your first game, Rigid bodies.
interface StallInputimport type { StallInput } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
trying | boolean | Is the body being asked to move or jump at all? Standing still is not being stuck. |
refused | boolean | Did the world refuse this tick's move?MoreWithout it the arming window fits a body turning on the spot or wiggling in open ground, and both were being pushed and then killed for it. |
grounded | boolean | Is there something under the feet? |
supported | boolean | Was the contact that stopped the fall genuinely support, rather than a graze against a side,
an edge or an underside?MoreTwo different facts, and conflating them is the courtyard-lamp trap: a body with no support gets no jump however solid the thing under it looks. |