Skip to content

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

Function: hookStep() ​

hookStep(sim, eid, body): boolean

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

One tick of a character on the hook's line, when it is on one (true; nothing done otherwise): pulled up the outside of the wall to over its edge, then over it onto the roof, where it lands on its feet, gravity back on. A twin, which does not know the anchor, hangs still where the snapshots put it.

Parameters ​

sim ​

SimWorld

eid ​

number

body ​

RigidBody

Returns ​

boolean