five-on-it / packages/sim/src/character / personSpotTaken
Function: personSpotTaken()
personSpotTaken(
sim,spawn,self?):boolean
Defined in: packages/sim/src/character.ts:798
Whether a character set down at a spawn point would stand in a car or another person (its capsule there, self aside; a person's with no self): a spawn to pass over for another. The people (and the dogs) are also looked for where their bodies are now: one set down earlier in this very step is not in the physics' queries yet.
Parameters
sim
spawn
self?
number = -1
Returns
boolean