18.9 An Application Layer 853
The array m_akWorldAxis stores the world coordinate frame for the purposes
of camera motion. The translation speed is
m_fTrnSpeed, and the rotation speed is
m_fRotSpeed. The other two float data members in the camera motion section,
m_fTrnSpeedFactor and m_fRotSpeedFactor, are multiplicative (or div ision) factors
for adjusting the current speeds. The member function
InitializeCameraMotion ini-
tializes the speeds and factors. It also uses the camera’s local coordinate axes at the time
of the call to initialize
m_akWorldAxis. The camera local axes are presumably set in the
application’s
OnInitialize call to place the camera in the world coordinate frame of
the scene graph. The entry 0 of the world axis ar ray may be thought ...