Class Bone
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Represents a bone in a model skeleton.
csharp
public class BoneInheritance
Constructors
Bone(int, string, Vector3, Quaternion, ModelSkeletonBoneFlags)
Initializes a new instance of the class.
csharp
public Bone(int index, string name, Vector3 position, Quaternion rotation, ModelSkeletonBoneFlags flags)Parameters
index int
name string
position Vector3
rotation Quaternion
flags ModelSkeletonBoneFlags
Properties
Angle
Gets the bone's rotation in parent space.
csharp
public Quaternion Angle { get; }Property Value
BindPose
Gets the bind pose transformation matrix.
csharp
public Matrix4x4 BindPose { get; }Property Value
Children
Gets the list of child bones.
csharp
public List<Bone> Children { get; }Property Value
Flags
Gets the bone flags.
csharp
public ModelSkeletonBoneFlags Flags { get; }Property Value
Index
Gets the index of the bone in the skeleton.
csharp
public int Index { get; }Property Value
InverseBindPose
Gets the inverse bind pose transformation matrix.
csharp
public Matrix4x4 InverseBindPose { get; }Property Value
IsProceduralCloth
Gets a value indicating whether this bone is part of procedural cloth simulation.
csharp
public bool IsProceduralCloth { get; }Property Value
Name
Gets the name of the bone.
csharp
public string Name { get; }Property Value
Parent
Gets the parent bone, or null if this is a root bone.
csharp
public Bone? Parent { get; }Property Value
Bone?
Position
Gets the bone's position in parent space.
csharp
public Vector3 Position { get; }Property Value
Methods
SetParent(Bone)
Sets the parent bone for this bone.
csharp
public void SetParent(Bone parent)Parameters
parent Bone

