Coordinate System

From NetRace

Coordinate System

We will use the standard DirectX coordinate system. It is a left-handed coordinate system. This MSDN doc has more information: 3-D Coordinate Systems (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/programmingguide/GettingStarted/3DCoordinateSystems/coordinatesystems.asp)


+Y - Up
+X - Right
+Z - In to the screen

Pitch - Around X - Lookup up and down - 0=Straight, +Up, -Down
Yaw   - Around Y - Rotating around (spinning in circles) - 0=East, +South, -North  or  +Right, -Left
Roll  - Around Z - Rotation about axis of screen - 0=Straight, +Clockwise, -CCW.

We need to make sure everything that deals with 3D space obeys this Coordinate System. This includes all libraries we use (physics, graphics, localized sound), source art, exporters, etc.