Vixen
02b45cc4
csharp
public record class SocketFrame

A named attachment point on whatever is bound to a slot.

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

Remarks

⚠ Separate from EntityFrame because the socket is the part that fails. A bound entity either exists or does not; a socket on it may simply not be there — a rifle model with no grip-left — and that has to come back as an unresolved frame rather than as the entity's origin, which would put a hand in the middle of the gun.

Fields and properties (3)

  • public Symbol Slot

    The slot.

  • public Symbol Socket

    The attachment point on it — "grip", "muzzle".

  • public BoneTransform Offset

    Where, relative to it.

Methods (3)

  • public SocketFrame(Symbol Slot, Symbol Socket, BoneTransform Offset)

    A named attachment point on whatever is bound to a slot.

  • public SocketFrame(string slot, string socket)

    A socket by name.

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

    Works out where the frame is.

Used by (3)

  • AuthoringTestsVixen.Animation.Tests
  • ConstraintFrameRecordVixen.Animation
  • ConstraintTestsVixen.Animation.Tests