private void updateOrientation(float elapsedTimeSec){
	    m_pitchDegrees *= elapsedTimeSec;
	    m_headingDegrees *= elapsedTimeSec;

	    engine.Quaternion rot = new engine.Quaternion();

	    if (m_headingDegrees != 0.0f)
	    {
	        rot.fromAngleAxis(m_headingDegrees, m_targetYAxis);
	        m_orientation = rot.mult(m_orientation);
	    }

	    if (m_pitchDegrees != 0.0f)
	    {
	        rot.fromAngleAxis(m_pitchDegrees, WORLD_XAXIS);
	        m_orientation = m_orientation.mult(rot);
	    }
	}