Exemple #1
0
//#include <iostream>
//using namespace std;
Spectator::Spectator(Input* input)
{
    m_pInput = input;
    m_fNormalSpeed = 10.0f;
    m_fRunSpeed = m_fNormalSpeed * 4.0f;
    m_fSpeed = m_fNormalSpeed;

    clampPitch(90.0f);
    Matrix::translation(*matrix(), glm::vec3(0.0f, 1.0f, 0.0f));
    m_vMove = glm::vec3(0.0f);
}
Exemple #2
0
		void Camera::changePitch(float degrees) {
			// Check bounds with the max pitch rate so that we aren't moving too fast
			camera_pitch += degrees;
			clampPitch();
		}
Exemple #3
0
		//}
		void Camera::setPitch(float degrees) {
			camera_pitch = degrees;
			clampPitch();
		}