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