void GlobalCameraManager::focusCamera(const Vector3& point, const Vector3& angles) { CamWndPtr camWnd = getActiveCamWnd(); if (camWnd == NULL) return; camWnd->setCameraOrigin(point); camWnd->setCameraAngles(angles); }
void GlobalCameraManager::resetCameraAngles(const cmd::ArgumentList& args) { CamWndPtr camWnd = getActiveCamWnd(); if (camWnd != NULL) { Vector3 angles; angles[CAMERA_ROLL] = angles[CAMERA_PITCH] = 0; angles[CAMERA_YAW] = 22.5 * floor((camWnd->getCameraAngles()[CAMERA_YAW]+11)/22.5); camWnd->setCameraAngles(angles); } }