Model¶
-
class
Model
: System.Object A basic 3D model with per mesh parent bones.
-
readonly ModelBoneCollection
Bones
A collection of T:Microsoft.Xna.Framework.Graphics.ModelBone objects which describe how each mesh in the mesh collection for this model relates to its parent mesh.
-
readonly ModelMeshCollection
Meshes
A collection of T:Microsoft.Xna.Framework.Graphics.ModelMesh objects which compose the model. Each T:Microsoft.Xna.Framework.Graphics.ModelMesh in a model may be moved independently and may be composed of multiple materials identified as T:Microsoft.Xna.Framework.Graphics.ModelMeshPart objects.
-
ModelBone
Root
Root bone for this model.
-
System.Object
Tag
Custom attached object.
Skinning data is example of attached object for model.
-
void
BuildHierarchy
()
-
public void
Draw
(Matrix world, Matrix view, Matrix projection) Draws the model meshes.
Parameters: - world (Microsoft.Xna.Framework.Matrix) – The world transform.
- view (Microsoft.Xna.Framework.Matrix) – The view transform.
- projection (Microsoft.Xna.Framework.Matrix) – The projection transform.
-
public void
CopyAbsoluteBoneTransformsTo
(Microsoft.Xna.Framework.Matrix[] destinationBoneTransforms) Copies bone transforms relative to all parent bones of the each bone from this model to a given array.
Parameters: - destinationBoneTransforms (Microsoft.Xna.Framework.Matrix[]) – The array receiving the transformed bones.
-
public void
CopyBoneTransformsFrom
(Microsoft.Xna.Framework.Matrix[] sourceBoneTransforms) Copies bone transforms relative to P:Microsoft.Xna.Framework.Graphics.Model.Root bone from a given array to this model.
Parameters: - sourceBoneTransforms (Microsoft.Xna.Framework.Matrix[]) – The array of prepared bone transform data.
-
public void
CopyBoneTransformsTo
(Microsoft.Xna.Framework.Matrix[] destinationBoneTransforms) Copies bone transforms relative to P:Microsoft.Xna.Framework.Graphics.Model.Root bone from this model to a given array.
Parameters: - destinationBoneTransforms (Microsoft.Xna.Framework.Matrix[]) – The array receiving the transformed bones.
-
readonly ModelBoneCollection