Инициализация чувствительности

This commit is contained in:
parent 0cadf29274
commit 24c2fb7c73
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Camera::Camera(const glm::vec3 &pos, const glm::vec2 &xyOffset)
: position(pos), currentRotation(xyOffset) : position(pos), currentRotation(xyOffset)
{ {
requiredRecalcView = true; requiredRecalcView = true;
sensitivity = 0.05;
} }
// Конструктор камеры с проекцией перспективы // Конструктор камеры с проекцией перспективы
@ -67,7 +68,7 @@ void Camera::rotate(const glm::vec2 &xyOffset)
requiredRecalcView = true; requiredRecalcView = true;
} }
// Сдвигает камеру на указанный вектор (dx,dy,dz)м // Сдвигает камеру на указанный вектор (dx,dy,dz)
void Camera::move(const glm::vec3 &posOffset) void Camera::move(const glm::vec3 &posOffset)
{ {
position += posOffset; position += posOffset;