Skip to content

five-on-it / packages/sim/src/character / doorSpot

Function: doorSpot() ​

doorSpot(sim, vehicle, door, flank?): Point

Defined in: packages/sim/src/character.ts:1238

Where a character stands at a car's door, in the world: just outside the body on the door's side (EXIT.gap from its flank), level with the door, or behind the car (in front of it) for a door at its end; flank puts the point on the body itself instead (the door, for a character to face).

Parameters ​

sim ​

SimWorld

vehicle ​

number

door ​

VehicleDoor

flank? ​

boolean = false

Returns ​

Point