Normalize particle velocity based on max duration

This commit is contained in:
Opelkuh
2021-09-18 23:45:58 +02:00
parent 846cde53b3
commit ef530ed87c
2 changed files with 8 additions and 5 deletions

View File

@ -29,7 +29,7 @@ namespace osu.Game.Tests.Visual.Gameplay
AddToggleStep("toggle spawning", value => spewer.Active.Value = value);
AddSliderStep("particle gravity", 0f, 1f, 0f, value => spewer.Gravity = value);
AddSliderStep("particle velocity", 0f, 1f, 0.25f, value => spewer.MaxVelocity = value);
AddSliderStep("particle velocity", 0f, 1f, 0.5f, value => spewer.MaxVelocity = value);
AddStep("move to new location", () =>
{
spewer.TransformTo(nameof(spewer.SpawnPosition), new Vector2(RNG.NextSingle(), RNG.NextSingle()), 1000, Easing.Out);