Table of Contents

Class Bone

Namespace
ValveResourceFormat.ResourceTypes.ModelAnimation
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 int
name string
position Vector3
rotation Quaternion
flags ModelSkeletonBoneFlags

Properties

Angle

Gets the bone's rotation in parent space.

public Quaternion Angle { get; }

Property Value

Quaternion

BindPose

Gets the bind pose transformation matrix.

public Matrix4x4 BindPose { get; }

Property Value

Matrix4x4

Children

Gets the list of child bones.

public List<Bone> Children { get; }

Property Value

List<Bone>

Flags

Gets the bone flags.

public ModelSkeletonBoneFlags Flags { get; }

Property Value

ModelSkeletonBoneFlags

Index

Gets the index of the bone in the skeleton.

public int Index { get; }

Property Value

int

InverseBindPose

Gets the inverse bind pose transformation matrix.

public Matrix4x4 InverseBindPose { get; }

Property Value

Matrix4x4

IsProceduralCloth

Gets a value indicating whether this bone is part of procedural cloth simulation.

public bool IsProceduralCloth { get; }

Property Value

bool

Name

Gets the name of the bone.

public string Name { get; }

Property Value

string

Parent

Gets the parent bone, or null if this is a root bone.

public Bone Parent { get; }

Property Value

Bone

Position

Gets the bone's position in parent space.

public Vector3 Position { get; }

Property Value

Vector3

Methods

SetParent(Bone)

Sets the parent bone for this bone.

public void SetParent(Bone parent)

Parameters

parent Bone