mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Adjust carousel radius slightly (flyte wanted it).
This commit is contained in:
parent
f0d30cc873
commit
2ad9377b37
@ -186,7 +186,7 @@ namespace osu.Game.Screens.Select
|
||||
private static float offsetX(float dist, float halfHeight)
|
||||
{
|
||||
// The radius of the circle the carousel moves on.
|
||||
const float CIRCLE_RADIUS = 4;
|
||||
const float CIRCLE_RADIUS = 3;
|
||||
double discriminant = Math.Max(0, CIRCLE_RADIUS * CIRCLE_RADIUS - dist * dist);
|
||||
float x = (CIRCLE_RADIUS - (float)Math.Sqrt(discriminant)) * halfHeight;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user