Suggested boundary change

This commit is contained in:
mk-56
2022-01-24 12:16:29 +01:00
parent a427e20090
commit 836cb1ee32

View File

@ -25,11 +25,11 @@ namespace osu.Game.Rulesets.Osu.Mods
public override Type[] IncompatibleMods => new[] { typeof(OsuModTransform) }; public override Type[] IncompatibleMods => new[] { typeof(OsuModTransform) };
[SettingSource("Strength")] [SettingSource("Strength")]
public BindableDouble WiggleStrength { get; } = new BindableDouble(10) public BindableDouble WiggleStrength { get; } = new BindableDouble(1)
{ {
MinValue = 1f, MinValue = .1f,
MaxValue = 15f, MaxValue = 2f,
Precision = .5f Precision = .1f
}; };
[SettingSource("Duration", "Milliseconds per wiggle")] [SettingSource("Duration", "Milliseconds per wiggle")]
@ -62,7 +62,7 @@ namespace osu.Game.Rulesets.Osu.Mods
void wiggle() void wiggle()
{ {
float nextAngle = (float)(objRand.NextDouble() * 2 * Math.PI); float nextAngle = (float)(objRand.NextDouble() * 2 * Math.PI);
float nextDist = (float)(objRand.NextDouble() * WiggleStrength.Value); float nextDist = (float)(objRand.NextDouble() * WiggleStrength.Value * 7);
drawable.MoveTo(new Vector2((float)(nextDist * Math.Cos(nextAngle) + origin.X), (float)(nextDist * Math.Sin(nextAngle) + origin.Y)), WiggleDuration.Value); drawable.MoveTo(new Vector2((float)(nextDist * Math.Cos(nextAngle) + origin.X), (float)(nextDist * Math.Sin(nextAngle) + origin.Y)), WiggleDuration.Value);
} }