Skip to content

Commit

Permalink
Camera: Initialize Camera members
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jan 17, 2018
1 parent 4e0d4a1 commit 6574a38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game/Camera.h
Expand Up @@ -31,6 +31,13 @@ struct Camera {
Anglef angle;
float cdepth;

Camera()
: m_pos(Vec3f_ZERO)
, focal(0.f)
, angle(Anglef::ZERO)
, cdepth(0.f)
{ }

void lookAt(const Vec3f & target) {
if(m_pos != target) {
angle = getLookAtAngle(m_pos, target);
Expand Down

0 comments on commit 6574a38

Please sign in to comment.