ModelBone.Transform Property

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

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

public Matrix Transform { get; set; }

Property Value

The matrix used to transform this bone relative only to its parent bone.

Please note that the transform described by Transform does not describe the cumulative relationship of each mesh relative to all of its parent meshes in a Model, just the immediate parent of the mesh. For this information, please see CopyAbsoluteBoneTransformsTo.

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.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions