Vixen
02b45cc4
csharp
public readonly ref struct ConstraintSolveContext

Everything an arbiter is given, and everything it may write.

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

Remarks

A ref struct, so nothing can hold one past the solve. The goals are sorted by chain, which is what lets an arbiter walk them in one pass and treat each contiguous run as one conversation.

Fields and properties (7)

  • public required Skeleton Skeleton

    The skeleton being posed.

  • public required Span<BoneTransform> Model

    A model-space buffer, valid on entry and rewritten freely.

  • public required ReadOnlySpan<ResolvedGoal> Goals

    The goals that resolved, sorted by chain.

  • public required Span<ConstraintResidual> Residuals

    Where each goal's residual goes. One slot per goal, in the same order.

  • public required IChainSolver Solver

    How a chain is actually moved.

  • public ConstraintGroup Group

    The characters being solved together, if a scheduler grouped any.

  • public float DeltaTime

    How much time has passed, in seconds.

Used by (4)

  • ConstraintStackVixen.Animation
  • DefaultConstraintArbiterVixen.Animation
  • IConstraintArbiterVixen.Animation
  • WeightedTestArbiterVixen.Animation.Tests