diff --git a/src/camera_effects.cpp b/src/camera_effects.cpp index b2e9c7d..dd08937 100644 --- a/src/camera_effects.cpp +++ b/src/camera_effects.cpp @@ -38,7 +38,7 @@ void CameraEffects::_process(double delta [[maybe_unused]]) { float const current_y{this->spring->get_rotation().y}; float diff{gd::Math::wrapf(this->target_rotation - current_y, -M_2_PIf, M_2_PI)}; - float const step(gd::Math::sign(diff) * delta * this->shoulder_switch_speed); + float const step(gd::Math::sign(diff) * delta * this->SHOULDER_SWITCH_SPEED); this->spring->rotate_y(gd::Math::abs(step) < gd::Math::abs(diff) ? step : diff); this->set_fov(gd::Math::move_toward(this->get_fov(), this->target_fov, float(this->fov_speed * delta))); diff --git a/src/camera_effects.hpp b/src/camera_effects.hpp index a29c554..035ef54 100644 --- a/src/camera_effects.hpp +++ b/src/camera_effects.hpp @@ -19,7 +19,7 @@ public: void select_target(); gd::Vector3 get_radians() const { return this->get_rotation(); } private: - float shoulder_switch_speed{1.f}; + float const SHOULDER_SWITCH_SPEED{10.f}; double end_time{0.5f}; float intensity{1.f}; float base_fov{60.f};