ModelMesh.ParentBone Property

Gets the parent bone for this mesh. The parent bone of a mesh contains a transformation matrix that describes how the mesh is located relative to any parent meshes in a model.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in

public ModelBone ParentBone { get; }

Property Value

The parent bone for this mesh.

An array of transformation matrices for the meshes of any model can be obtained by calling CopyAbsoluteBoneTransformsTo or CopyBoneTransformsTo. The resulting array contains the transforms that describe how each ModelMesh is located relative to one another in the Model. The transformation matrix that should be applied to each ModelMesh can be obtained using the index of the ParentBone to retrieve a transformation matrix from this collection.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions