Vixen
c7401864
csharp
public readonly record struct ShotDirection

Where a shot is aimed, relative to where the shooter was looking.

Read the guide page for this →

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 Pitch

    How far up, in degrees.

  • public float Yaw

    How 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