Model.Bones Property

Gets a collection of ModelBone objects which describe how each mesh in the Meshes collection for this model relates to its parent mesh.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public ModelBoneCollection Bones { get; }

Property Value

A collection of ModelBone objects used by this model.

Remarks

Warning

Please note that the transforms contained in this collection of bones does not describe the cumulative relationship of each mesh relative to all of its parent meshes in the collection, just the immediate parent of the mesh. For this information, please see CopyAbsoluteBoneTransformsTo.

The transforms of each ModelBone in Bones can also be obtained using the CopyBoneTransformsTo method.

For a demonstration of how to use the transforms for the parent bones of a model mesh to set the position of the mesh parts, please see How to: Render a Model.

See Also

Tasks

How to: Render a Model

Reference

Model.CopyAbsoluteBoneTransformsTo Method
Model Class
Model Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista