Skip to content

measureShotDistance

measureShotDistance(__namedParameters): number

Defined in: packages/engine/src/gameplay/weapons/aim.ts:30

Metres along the ray to where it enters the capsule, when it does within range; Infinity otherwise. Measured into the sphere round the axis point nearest the ray, which the capsule holds, so it is never short of the capsule’s own surface by more than a glancing ray’s difference. A radius or height left at 0 is the hero’s, as the physics cuts an unsized body.

Parameter Type
__namedParameters ShotTest

number