Skip to content

five-on-it / packages/sim/src/escape / glideStep

Function: glideStep() ​

glideStep(sim, eid, body, input, grounded): boolean

Defined in: packages/sim/src/escape.ts:296

One tick under the paraglider, when the character glides (true; nothing done otherwise): forward at GLIDER.speed, sinking at GLIDER.sink, turning toward where the movement keys point; on the ground (grounded, past the take-off) or down to the water it lands, its fall forgiven, and walks on.

Parameters ​

sim ​

SimWorld

eid ​

number

body ​

RigidBody

input ​

steer ​

number

throttle ​

number

grounded ​

boolean

Returns ​

boolean