mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
RotationAbsolute -> BidirectionalRotation
This commit is contained in:
@ -82,11 +82,11 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
|
||||
private float lastAngle;
|
||||
private float currentRotation;
|
||||
public float RotationAbsolute;
|
||||
public float BidirectionalRotation;
|
||||
private int completeTick;
|
||||
|
||||
private bool updateCompleteTick() => completeTick != (completeTick = (int)(RotationAbsolute / 360));
|
||||
|
||||
private bool updateCompleteTick() => completeTick != (completeTick = (int)(BidirectionalRotation / 360));
|
||||
private bool rotationTransferred;
|
||||
|
||||
protected override void Update()
|
||||
@ -111,7 +111,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
lastAngle -= 360;
|
||||
|
||||
currentRotation += thisAngle - lastAngle;
|
||||
RotationAbsolute += Math.Abs(thisAngle - lastAngle);
|
||||
BidirectionalRotation += Math.Abs(thisAngle - lastAngle) * Math.Sign(Time.Current - lastTime);
|
||||
}
|
||||
|
||||
lastAngle = thisAngle;
|
||||
|
Reference in New Issue
Block a user