-
Notifications
You must be signed in to change notification settings - Fork 1
/
Camera.h
31 lines (26 loc) · 971 Bytes
/
Camera.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
class Camera
{
public:
Camera();
~Camera();
void Update();
DirectX::SimpleMath::Matrix getCameraMatrix();
void setPosition(DirectX::SimpleMath::Vector3 newPosition);
DirectX::SimpleMath::Vector3 getPosition();
DirectX::SimpleMath::Vector3 getForward();
void setRotation(DirectX::SimpleMath::Vector3 newRotation);
DirectX::SimpleMath::Vector3 getRotation();
float getMoveSpeed();
float getRotationSpeed();
private:
DirectX::SimpleMath::Matrix m_cameraMatrix; //camera matrix to be passed out and used to set camera position and angle for wrestling
DirectX::SimpleMath::Vector3 m_lookat;
DirectX::SimpleMath::Vector3 m_position;
DirectX::SimpleMath::Vector3 m_forward;
DirectX::SimpleMath::Vector3 m_right;
DirectX::SimpleMath::Vector3 m_up;
DirectX::SimpleMath::Vector3 m_orientation; //vector storing pitch yaw and roll.
float m_movespeed ;
float m_camRotRate;
};