Skip to main content

ElbowControllerSettings

A class in Root.Township, Alta.Character.

Settings asset for ElbowController, which places the elbow IK hint by matching the hand pose against recorded elbow samples.

Constructors​

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

Fields​

8 private and internal fields
MemberWhat it is
private AnimationCurve elbowTargetSpeedCurveMaps the distance between the current and best elbow target to how fast the elbow moves there.
private bool isLoggingBestTargetsDebug: logs the best matching data points every physics step.
private bool isShowingBestTargetsDebug: makes visual markers for the best matching data points.
private bool isUsingWeightedAverageAverages the best matches weighted by how well they score. Default true.
private int minimumAssessedPointsHow many data points must be scored before the search stops widening. Default 15.
private int numberOfBestMatchedToAverageHow many of the best matching data points are averaged for the elbow position. Default 1.
private float positionMultiplierWeight of hand position difference when scoring a data point.
private float rotationMultiplierWeight of hand rotation difference when scoring a data point.

Properties​

MemberWhat it is
AnimationCurve ElbowTargetSpeedCurve { get; }Lerp speed of the elbow target, keyed by its distance from the new best position.
bool IsLoggingBestTargets { get; }Debug: logs the best matched samples every fixed update.
bool IsShowingBestTargets { get; }Debug: shows markers at the best matched samples and their average.
bool IsUsingWeightedAverage { get; }If true the best matches are averaged weighted by how well they match, otherwise evenly.
int MinimumAssessedPoints { get; }The search widens its distance band until at least this many samples have been scored.
int NumberOfBestMatchedToAverage { get; }How many of the best matching samples are averaged.
float PositionMultiplier { get; }Weight of hand position difference in a sample's match score.
float RotationMultiplier { get; }Weight of hand rotation difference in a sample's match score.

Used in​

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