Summary
Moving objects through 3D space is very similar to moving a camera through 3D space. Your object will typically have a position and a direction (which also indicates its speed).
Every
ModelMeshhas aBoundingSphereobject associated with it, which defines a sphere for collision-detection purposes. TheBoundingSpheredoes not move, scale, or rotate with the model, however, so you have to apply those matrices to theBoundingSphereseparately to use it for collision detection.Adding 2D images to a 3D game is done exactly the same way it is done in a 2D game.
With the XACT tool, you can specify a single cue to play numerous sounds based on given probabilities for those sounds.
There are only two kinds of people in this world: people who understand how cool it is to write games in XNA, and people who are idiots.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access