Skip to content

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

Function: adoptEscape() ​

adoptEscape(sim, eid, hook, glide, yaw): void

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

Takes the server's word on a character's hook and glide (a client's twin), told by the snapshot's act: on a line it hangs where the snapshots put it, with no gravity; under the glider it glides on from its heading, as the server's does; neither, it has both off.

Parameters ​

sim ​

SimWorld

eid ​

number

hook ​

boolean

glide ​

boolean

yaw ​

number

Returns ​

void