Struct PoseParameter ​
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
A named pose parameter a blend sequence's AnimationFetch.LocalPose positions its animations along, one per dimension.
public readonly record struct PoseParameter : IEquatable<PoseParameter>Implements ​
Constructors ​
PoseParameter(string, float, float, bool) ​
A named pose parameter a blend sequence's AnimationFetch.LocalPose positions its animations along, one per dimension.
public PoseParameter(string Name, float Min, float Max, bool Looping)Parameters ​
Name string
The parameter's name, matched against AnimationFetch.LocalPose through SequenceAnimation.PoseParameterNames.
Min float
The value at which the parameter's range starts.
Max float
The value at which the parameter's range ends.
Looping bool
Whether the parameter wraps from PoseParameter.Max back to PoseParameter.Min instead of clamping. PoseParameter.Clamp(float) does not special-case it.
See Also ​
Properties ​
Looping ​
Whether the parameter wraps from PoseParameter.Max back to PoseParameter.Min instead of clamping. PoseParameter.Clamp(float) does not special-case it.
public bool Looping { get; init; }Property Value ​
bool
Max ​
The value at which the parameter's range ends.
public float Max { get; init; }Property Value ​
float
Min ​
The value at which the parameter's range starts.
public float Min { get; init; }Property Value ​
float
Name ​
The parameter's name, matched against AnimationFetch.LocalPose through SequenceAnimation.PoseParameterNames.
public string Name { get; init; }Property Value ​
string
Methods ​
Clamp(float) ​
Returns value clamped to PoseParameter.Min/PoseParameter.Max.
public float Clamp(float value)Parameters ​
value float
Returns ​
float

