Fix falling sliders with new slider style.

This commit is contained in:
Matteo Signer
2016-12-14 15:31:41 +01:00
parent 041014ab47
commit 2ade7fa349
2 changed files with 2 additions and 9 deletions

View File

@@ -1498,7 +1498,7 @@ public class Game extends BasicGameState {
// translate and rotate the object
g.translate(0, dt * dt * container.getHeight());
Vec2f rotationCenter = gameObj.getPointAt(beatmap.objects[idx].getTime());
Vec2f rotationCenter = gameObj.getPointAt((beatmap.objects[idx].getTime() + beatmap.objects[idx].getEndTime()) / 2);
g.rotate(rotationCenter.x, rotationCenter.y, rotSpeed * dt);
gameObj.draw(g, trackPosition);