CHAPTER 4 ■ WORKING WITH MODELS
316
When you run this code, the structure of your Model will be written to the
modelStructure.txt file, which you can find in the same map in which your .exe file resides.
By default, this is in the \bin\x86\Debug map.
The Code
Allthecodeisavailablefordownloadatwww.apress.com.
The WriteModelStructure, WriteBone, and WriteModelMesh methods were all listed completely
in the previous text.
4-9. Make the Bones Move Individually:
Model Animation
The Problem
You want to be able to move each part of a Model separately. For example, you want to lower
the side window or rotate a wheel of a car.
The Solution
As explained in recipe 4-1, a Model consists of separately drawable ModelMeshes.EachModelMesh
is attached ...