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.Graphics (in

public ModelBoneCollection Bones { get; }

Property Value

A collection of ModelBone objects used by this model.

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.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions