Vixen
02b45cc4
csharp
public sealed class DistanceGoal

Two joints should be a certain distance apart.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The one goal with no frame: both ends are joints on the same body. Two hands on a rifle, a hand that must not leave a rail, a chin that must clear a shoulder.

Fields and properties (4)

  • public override GoalKind Kind

    What it asks for.

  • public required int Other

    The other joint.

  • public float Min

    The closest they may be, in metres.

  • public float Max

    The furthest they may be, in metres.

Methods (1)

  • public float Excess(float separation)

    How far outside the interval a separation is, signed.

Used by (3)

  • ConstraintTagRecordVixen.Animation
  • ConstraintTestsVixen.Animation.Tests
  • DefaultConstraintArbiterVixen.Animation