csharp
public readonly record struct ShotDirectionWhere a shot is aimed, relative to where the shooter was looking.
Remarks
⚠ Two angles rather than a direction vector, and that is not laziness. A vector implies a coordinate convention and a basis, and this library has neither — it does not know where the shooter is or which way is up. The caller applies these to its own aim basis, which is the only place that knows what "up" means.
Fields and properties (2)
public float PitchHow far up, in degrees.
public float YawHow far sideways, in degrees. Positive is right.
Methods (1)
public ShotDirection(float Pitch, float Yaw)Where a shot is aimed, relative to where the shooter was looking.
Used by (9)
- HitClaimValidatorVixen.Gameplay.Shooting
- HitClaimValidatorTestsVixen.Gameplay.Shooting.Tests
- RewindBudgetTestsVixen.Gameplay.Shooting.Tests
- ShotFiredVixen.Gameplay.Shooting
- SpreadTestsVixen.Gameplay.Shooting.Tests
- WeaponLibraryVixen.Gameplay.Shooting
- WeaponStateVixen.Gameplay.Shooting
- WeaponStateTestsVixen.Gameplay.Shooting.Tests
- WeaponTemplateVixen.Gameplay.Shooting