Game Development Reference
In-Depth Information
y
x
z
Figure 3-1.
3D vectors and the Android OpenGL ES coordinate system
Vector Representing Position
A vector can represent an object's position in the Android 3D OpenGL ES world. In fact, in the
Orientation class from the example in Chapter 2, the object's position is a 3D vector represented by
the Vector3 class.
private Vector3 m_Position;
Graphically, you can see a vector representing an object's position in the 3D world in Figure
3-2
.
y
z
(6, 2, -3)
x
Figure 3-2.
Vector representing a position