Skip to content

five-on-it / packages/sim/src/car-hits / knockDownByCar

Function: knockDownByCar() ​

knockDownByCar(sim, eid): boolean

Defined in: packages/sim/src/car-hits.ts:254

What a car does to a character on foot it touched in the last step, closing fast or pushing a body down: a hit, a bounce, or the body sent over it (see the module documentation). Returns true when the character was knocked down.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

boolean