Skip to content

five-on-it / packages/sim/src/interaction / openedFacing

Function: openedFacing() ​

openedFacing(sim, eid): { x: number; y: number; z: number; } | undefined

Defined in: packages/sim/src/interaction.ts:256

Where a character with a panel open faces: a car's trunk, the middle of its rear bumper; a container, a shop or a terminal, its middle; nothing while it has none open. The character turns to it while the panel is open (characterSystem), whatever it aims at.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

{ x: number; y: number; z: number; } | undefined