Skip to content

Commit

Permalink
Adjust slow tilt
Browse files Browse the repository at this point in the history
  • Loading branch information
ASleepyCat committed Nov 27, 2019
1 parent e8f8628 commit 803507b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Main/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void Camera::Tick(float deltaTime, class BeatmapPlayback& playback)
float speedLimitDivider = 1.f;
if (m_slowTilt && !rollCatchUp)
// Roll even slower when roll is less than 1 / 10 of max tilt
speedLimitDivider = fabsf(m_laserRoll) > m_rollIntensity * SLOWEST_TILT_THRESHOLD ? 4.f : 8.f;
speedLimitDivider = fabsf(m_laserRoll) > m_rollIntensity * SLOWEST_TILT_THRESHOLD ? 4.f : 6.f;
LerpTo(m_laserRoll, m_targetLaserRoll, speedlimit / speedLimitDivider);
}

Expand Down
2 changes: 1 addition & 1 deletion Main/Camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static const float SLOW_ROLL_IGNORE_TIMER = 0.2;
static const int FAST_ROLL_IGNORE = 0;
static const int SLOW_ROLL_IGNORE = 1;
// Percent of m_rollIntensity where camera rolls at its slowest rate
static const float SLOWEST_TILT_THRESHOLD = 0.1;
static const float SLOWEST_TILT_THRESHOLD = 0.2;

/*
Camera that hovers above the playfield track and can process camera shake and tilt effects
Expand Down

0 comments on commit 803507b

Please sign in to comment.