five-on-it / packages/sim/src/escape / GLIDER
Variable: GLIDER
constGLIDER:object
Defined in: packages/sim/src/escape.ts:71
The paraglider's numbers.
Type Declaration
edgeAhead
readonlyedgeAhead:1.5=1.5
How far ahead a roof's edge is looked for, to take off from it (m).
edgeDrop
readonlyedgeDrop:3=3
How far the ground must drop beyond that edge (m).
falling
readonlyfalling:1=1
How fast a character must be falling for it to open in the air (m/s).
sink
readonlysink:2=2
How fast it sinks (m/s).
speed
readonlyspeed:8=8
How fast it flies forward (m/s).
takeOffTicks
readonlytakeOffTicks:number
Ticks after opening before touching the ground lands it (a take-off from a roof's edge runs off it first).
turnRate
readonlyturnRate:1.6=1.6
How fast it turns toward where the movement keys point (rad/s).