Vixen
02b45cc4
csharp
public record class SurfaceFrame

A point on the surface of a proxy shape, resolved for whichever body is wearing it.

Read the guide page for this →

Remarks

The frame the whole document is for. Every other kind of frame names a place; this one names a place on a body, and resolves to a different world point on every body that means the same thing. One authored clip, three bodies of visibly different proportions, hand contact correct on all three — that claim is this type.

⚠ Resolution needs proxy shapes, and a stack that has none fails cleanly. Not an exception: a character whose shape set has not loaded yet, or which has been dropped to a detail level that no longer carries the named shape, is exactly the case TryResolve's failure path and D18's ease-out exist for.

Fields and properties (1)

Methods (3)

  • public SurfaceFrame(SurfaceCoordinate Coordinate)

    A point on the surface of a proxy shape, resolved for whichever body is wearing it.

  • public SurfaceFrame(string shape, SurfacePoint point)

    A point on a named shape's surface.

  • public bool TryResolve(in ConstraintContext context, out Frame frame)

    Works out where the frame is.

Used by (9)

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