1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 07:47:27 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Timing/Drawables/DrawableGravityTimingChange.cs

25 lines
645 B
C#
Raw Normal View History

using osu.Framework.Physics;
namespace osu.Game.Rulesets.Mania.Timing.Drawables
{
public class DrawableGravityTimingChange : DrawableTimingChange
{
private const float acceleration = 9.8f;
private const float terminal_velocity = 50f;
private RigidBodySimulation sim;
public DrawableGravityTimingChange(TimingChange timingChange)
: base(timingChange)
{
sim = new RigidBodySimulation(Content);
}
protected override void Update()
{
base.Update();
// Todo: Gravity calculations here
}
}
}