Skip to main content

ElbowGuideDataPoint

A class in Root.Township, Alta.Character.

One recorded sample used to place the elbow in arm IK: a hand pose and where the elbow should be for it. ElbowController picks the samples closest to the current hand pose.

Constructors​

MemberWhat it is
ElbowGuideDataPoint()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

6 private and internal fields
MemberWhat it is
private ElbowDataPointSet dataPointSetBacking field for DataPointSet.
private Vector3 elbowHintPositionBacking field for ElbowHintPosition.
private HandIndex handIndexBacking field for HandIndex.
private Vector3 handPositionBacking field for HandPosition.
private Quaternion handRotationBacking field for HandRotation.
private float weightBacking field for Weight.

Properties​

MemberWhat it is
ElbowDataPointSet DataPointSet { get; set; }The set this data point belongs to.
Vector3 ElbowHintPosition { get; set; }Where the elbow should be for this hand pose, relative to the body.
HandIndex HandIndex { get; set; }Which hand the sample was recorded for. Samples for the other hand are mirrored.
Vector3 HandPosition { get; set; }Hand position relative to the body.
Quaternion HandRotation { get; set; }Hand rotation relative to the body.
float Weight { get; set; }Divides the match score, so a higher weight makes the sample more likely to be picked. Must not be 0.

Methods​

MemberWhat it is
ElbowGuideDataPointRuntime MirrorDataPoint()Returns a runtime copy mirrored across the body for the other hand.

Used in​

Members of other types that take, return or hold a ElbowGuideDataPoint: