nuclear-plant-sim/src/world/player.hpp

22 lines
398 B
C++

#pragma once
#include <glm/ext/matrix_float4x4.hpp>
#include <glm/ext/scalar_constants.hpp>
#include <glm/matrix.hpp>
namespace World {
struct Player {
glm::vec<2, double> m_pos;
glm::vec<2, double> m_vel;
glm::vec<2, double> m_accel;
double m_distance = 4;
double m_pitch = 0;
double m_yaw = glm::pi<double>() * 0.25;
void update();
glm::mat4 get_view_matrix() const;
};
};