fix(naming): capitalized constant
parent
e804efb9fd
commit
073fc4f66f
|
@ -38,7 +38,7 @@ void CameraEffects::_process(double delta [[maybe_unused]]) {
|
||||||
|
|
||||||
float const current_y{this->spring->get_rotation().y};
|
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 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->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)));
|
this->set_fov(gd::Math::move_toward(this->get_fov(), this->target_fov, float(this->fov_speed * delta)));
|
||||||
|
|
|
@ -19,7 +19,7 @@ public:
|
||||||
void select_target();
|
void select_target();
|
||||||
gd::Vector3 get_radians() const { return this->get_rotation(); }
|
gd::Vector3 get_radians() const { return this->get_rotation(); }
|
||||||
private:
|
private:
|
||||||
float shoulder_switch_speed{1.f};
|
float const SHOULDER_SWITCH_SPEED{10.f};
|
||||||
double end_time{0.5f};
|
double end_time{0.5f};
|
||||||
float intensity{1.f};
|
float intensity{1.f};
|
||||||
float base_fov{60.f};
|
float base_fov{60.f};
|
||||||
|
|
Loading…
Reference in New Issue