Struct FrameBone ​
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Represents the transform of a bone in a single animation frame.
csharp
public record struct FrameBone : IEquatable<FrameBone>Implements ​
Constructors ​
FrameBone(Vector3, float, Quaternion) ​
Initializes with a position, scale, and rotation.
csharp
public FrameBone(Vector3 position, float scale, Quaternion rotation)Parameters ​
position Vector3
scale float
rotation Quaternion
FrameBone(Vector4, Quaternion) ​
Initializes with a combined position+scale, and rotation.
csharp
public FrameBone(Vector4 positionScale, Quaternion rotation)Parameters ​
positionScale Vector4
rotation Quaternion
Properties ​
Angle ​
Gets or sets the rotation of the bone.
csharp
public Quaternion Angle { readonly get; set; }Property Value ​
Identity ​
The identity bone transform.
csharp
public static FrameBone Identity { get; }Property Value ​
Position ​
Gets or sets the position of the bone.
csharp
public Vector3 Position { readonly get; set; }Property Value ​
PositionScale ​
Gets the position and scale of this bone combined into a .
csharp
public readonly Vector4 PositionScale { get; }Property Value ​
Scale ​
Gets or sets the scale of the bone.
csharp
public float Scale { readonly get; set; }Property Value ​
ScaleVector ​
Gets the scale of this bone as a .
csharp
public readonly Vector3 ScaleVector { get; }Property Value ​
Methods ​
Blend(FrameBone, float) ​
Blends to the target transform normally.
csharp
public readonly FrameBone Blend(FrameBone target, float t)Parameters ​
target FrameBone
t float
Returns ​
BlendAdd(FrameBone, float) ​
Blends to the target transform additively.
csharp
public readonly FrameBone BlendAdd(FrameBone other, float t)Parameters ​
other FrameBone
t float

