Physics · interface

StallInput

What the consumer knows about this tick that the geometry cannot say.

Explained in Your first game, Rigid bodies.

interface StallInput
import type { StallInput } from '@driftengine/physics';

Properties

NameTypeDescription
tryingbooleanIs the body being asked to move or jump at all? Standing still is not being stuck.
refusedbooleanDid the world refuse this tick's move?
More

Without 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.

groundedbooleanIs there something under the feet?
supportedbooleanWas the contact that stopped the fall genuinely support, rather than a graze against a side, an edge or an underside?
More

Two 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.