approximative cam movement

This commit is contained in:
2023-06-06 17:56:19 +02:00
parent 39bdd0a11e
commit b70e8f7790
3 changed files with 21 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ struct Camera {
class Renderer {
public:
static constexpr float m_AnimationSpeed = 2.0f;
static constexpr float m_MouseSensitivity = 100.0f;
static constexpr float m_MouseSensitivity = 200.0f;
struct Model {
GL::VertexArray* vao;
@@ -55,6 +55,7 @@ public:
void RenderModel(const Model& model);
void SetZoom(float zoom);
void SetCamAngularMovement(const Vec2f& mov);
void SetCamMovement(const Vec2f& mov);
void SetCamLook(const Vec2f& worldPos);