public final class Model
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
Tag
Gets or sets an object identifying this model.
|
Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
void |
CopyAbsoluteBoneTransformsTo(Matrix[] destinationBoneTransforms)
Copies a transform of each bone in a model relative to all parent bones of the bone into a given array.
|
void |
CopyBoneTransformsFrom(Matrix[] sourceBoneTransforms)
Copies an array of transforms into each bone in the model.
|
void |
CopyBoneTransformsTo(Matrix[] destinationBoneTransforms)
Copies each bone transform relative only to the parent bone of the model to a given array.
|
void |
Draw(Matrix world,
Matrix view,
Matrix projection)
Render a model after applying the matrix transformations.
|
ModelBoneCollection |
getBones()
Gets a collection of ModelBone objects which describe how each mesh in the Meshes collection for this model relates to its parent mesh.
|
ModelMeshCollection |
getMeshes()
Gets a collection of ModelMesh objects which compose the model.
|
ModelBone |
getRoot()
Gets the root bone for this model.
|
public ModelBoneCollection getBones()
public ModelMeshCollection getMeshes()
public ModelBone getRoot()
public void CopyAbsoluteBoneTransformsTo(Matrix[] destinationBoneTransforms)
destinationBoneTransforms
- The array to receive bone transforms.public void CopyBoneTransformsFrom(Matrix[] sourceBoneTransforms)
sourceBoneTransforms
- An array containing new bone transforms.public void CopyBoneTransformsTo(Matrix[] destinationBoneTransforms)
destinationBoneTransforms
- The array to receive bone transforms.