Class ModelBone
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
Index
Gets the index of this bone in the Model.Bones collection.
public int Index { get; set; }
Property Value
Meshes
List of the meshes for this bone.
public List<ModelMesh> Meshes { get; }
Property Value
ModelTransform
Transform of this node from the root of the model not from the parent
public Matrix ModelTransform { get; set; }
Property Value
Name
Gets the name of this bone.
public string Name { get; set; }
Property Value
Parent
Gets the parent of this bone.
public ModelBone Parent { get; set; }
Property Value
Transform
Gets or sets the matrix used to transform this bone relative to its parent bone.
public Matrix Transform { get; set; }
Property Value
Methods
AddChild(ModelBone)
Adds a new child bone to this bone.
public void AddChild(ModelBone modelBone)
Parameters
AddMesh(ModelMesh)
Add a ModelMesh to the mesh collection.
public void AddMesh(ModelMesh mesh)