Table of Contents

Class ModelBone

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

Represents bone data for a model.

public sealed class ModelBone
Inheritance
ModelBone
Inherited Members

Constructors

ModelBone()

Creates a new collection of ModelBone to denote the child bones in this model.

public ModelBone()

Properties

Children

Gets a collection of bones that are children of this bone.

public ModelBoneCollection Children { get; }

Property Value

ModelBoneCollection

Index

Gets the index of this bone in the Model.Bones collection.

public int Index { get; set; }

Property Value

int

Meshes

List of the meshes for this bone.

public List<ModelMesh> Meshes { get; }

Property Value

List<ModelMesh>

ModelTransform

Transform of this node from the root of the model not from the parent

public Matrix ModelTransform { get; set; }

Property Value

Matrix

Name

Gets the name of this bone.

public string Name { get; set; }

Property Value

string

Parent

Gets the parent of this bone.

public ModelBone Parent { get; set; }

Property Value

ModelBone

Transform

Gets or sets the matrix used to transform this bone relative to its parent bone.

public Matrix Transform { get; set; }

Property Value

Matrix

Methods

AddChild(ModelBone)

Adds a new child bone to this bone.

public void AddChild(ModelBone modelBone)

Parameters

modelBone ModelBone

ModelBone to be added.

AddMesh(ModelMesh)

Add a ModelMesh to the mesh collection.

public void AddMesh(ModelMesh mesh)

Parameters

mesh ModelMesh

ModelMesh to be added