Vixen
02b45cc4
csharp
public readonly record struct SurfaceCoordinate

Where on a body a goal is, expressed so it means the same thing on another body.

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

Remarks

⚠ Three sources, chosen independently, and that is the decision rather than a convenience. Collapsing origin, orientation and scale into one choice is what forces an author to pick the least-wrong single frame and then hand-correct the result — because the three genuinely want different sources more often than not. Project the origin onto a surface, take the orientation from a bone, take the scale from the world so a one-centimetre gap stays one centimetre. It costs almost nothing: the resolve is three steps either way, and this lets each name its own source.

The surface, axis and limb forms are what you get by leaving the other two alone; they are special cases of this and not separate types.

Fields and properties (9)

  • public Symbol Shape

    Which proxy shape, by name.

  • public Facet Tag

    Which proxy shape, by what it affords. Used when Shape names nothing.

  • public OriginSource Origin

    Where the origin comes from.

  • public SurfacePoint Point

    The place on the surface, for Surface.

  • public Vector3 Direction

    The direction out of the shape's centre, for Axis, in the shape's own space.

  • public LimbSpan Limb

    The limb, for Limb.

  • public Vector3 Residual

    What was left over when the authored point was projected onto the surface, in the surface's own frame.

  • public OrientationSource Orientation

    Where the orientation comes from.

  • public ScaleSource Scale

    Where the scale comes from.

Methods (7)

Used by (9)

  • ConstraintStageBenchmarksVixen.Benchmarks.Animation
  • AttachmentSocketVixen.Animation
  • ConstraintFrameRecordVixen.Animation
  • ConstraintGizmosVixen.Animation
  • ProxyShapeTestsVixen.Animation.Tests
  • SurfaceFrameVixen.Animation
  • TrajectoryFrameVixen.Animation
  • TrajectoryTestsVixen.Animation.Tests
  • VariationHarnessVixen.Animation