ShotTest
A shot’s ray against one walker’s capsule and its hit zones.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
body |
Pick<CharacterCapsule, "radius" | "height"> |
- |
facing? |
Quaternion | null |
Its turn, which its zones turn with; its rest when left out. |
feet |
Vector3 |
Where the walker’s feet stand. |
range |
number |
Metres along the ray the shot reaches. |
ray |
Ray |
- |
zone? |
HitZone | null |
Written by measureShotDistance: the zone the ray meets first, or null where it meets none. |
zones? |
readonly HitZone[] |
Its HitZonesTrait, in its own frame; none when left out. |