CHAPTER 12Skeletal Animation

Although the game scenery is mainly composed of static objects, you might want to use some animated models for animated characters—the player and the nonplayable characters (NPCs)—in your game. You can create animated models in different ways. For example, in a racing game, the car might be an animated model because its wheels rotate as the vehicle moves. You can easily reproduce this type of animation just by finding the part of the mesh that corresponds to a wheel and rotating this part over its axis. However, when you need to animate a character (running, jumping, falling, and so on), the animation process becomes more complex. This is because you'll need to modify the character's mesh, called skinning. This ...

Get Beginning XNA 3.0 Game Programming: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.