コード例 #1
0
ファイル: Spectator.cpp プロジェクト: flipcoder/qor-old
//#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);
}
コード例 #2
0
ファイル: Camera.cpp プロジェクト: ashleygwinnell/ark2d
		void Camera::changePitch(float degrees) {
			// Check bounds with the max pitch rate so that we aren't moving too fast
			camera_pitch += degrees;
			clampPitch();
		}
コード例 #3
0
ファイル: Camera.cpp プロジェクト: ashleygwinnell/ark2d
		//}
		void Camera::setPitch(float degrees) {
			camera_pitch = degrees;
			clampPitch();
		}