Fixed typo in camera class
This commit is contained in:
parent
5b5543e415
commit
d3f79ea07e
3 changed files with 7 additions and 8 deletions
|
|
@ -30,7 +30,7 @@ private:
|
|||
|
||||
transM = glm::translate(glm::mat4(), position);
|
||||
|
||||
if (type == CameraType::firtsperson)
|
||||
if (type == CameraType::firstperson)
|
||||
{
|
||||
matrices.view = rotM * transM;
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ private:
|
|||
}
|
||||
};
|
||||
public:
|
||||
enum CameraType { lookat, firtsperson };
|
||||
enum CameraType { lookat, firstperson };
|
||||
CameraType type = CameraType::lookat;
|
||||
|
||||
glm::vec3 rotation = glm::vec3();
|
||||
|
|
@ -107,7 +107,7 @@ public:
|
|||
|
||||
void update(float deltaTime)
|
||||
{
|
||||
if (type == CameraType::firtsperson)
|
||||
if (type == CameraType::firstperson)
|
||||
{
|
||||
if (moving())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue