mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 22:27:25 +09:00
Cap rotation ratio to 1
This commit is contained in:
parent
2268d7f8a5
commit
153e204d20
@ -68,7 +68,11 @@ namespace osu.Game.Rulesets.Osu.Utils
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RotateVectorTowardsVector(posRelativeToPrev, playfield_middle - prevObjectPos, relativeRotationDistance * rotationRatio);
|
return RotateVectorTowardsVector(
|
||||||
|
posRelativeToPrev,
|
||||||
|
playfield_middle - prevObjectPos,
|
||||||
|
Math.Min(1, relativeRotationDistance * rotationRatio)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user