Skip to content

five-on-it / apps/client/src/renderer/gunfire / windowOf

Function: windowOf() ​

windowOf(vehicle, seat, toward, out): Vector3

Defined in: apps/client/src/renderer/gunfire.ts:85

Where a shot from a seat leaves its vehicle on its way to toward, into out: from the shooter's hand (its seat's hips up at the shoulders, out in front), along the shot to the cabin's side or its windscreen, whichever it meets first (an open seat's pistol is held out in the open, a little past the hand).

Parameters ​

vehicle ​

DrawnVehicle

seat ​

Seat | undefined

toward ​

Vec

out ​

Vector3

Returns ​

Vector3