Skip to content

five-on-it / packages/sim/src/weapons / ShotTrace

Interface: ShotTrace ​

Defined in: packages/sim/src/weapons.ts:335

What a traced shot found.

Properties ​

distance ​

distance: number

Defined in: packages/sim/src/weapons.ts:337

How far the shot went before hitting something, up to its range (m).


eid ​

eid: number

Defined in: packages/sim/src/weapons.ts:339

Entity whose body it hit, or -1 (a wall, the ground, nothing).