Skip to content

five-on-it / packages/sim/src/sitting / sitDown

Function: sitDown() ​

sitDown(sim, eid, spot): boolean

Defined in: packages/sim/src/sitting.ts:64

Sits a character on a seat (a spot's index): out of the physics, its pose the seat's. Returns whether it sat.

Parameters ​

sim ​

SimWorld

eid ​

number

spot ​

number

Returns ​

boolean