From c1eaf5a2ea041d0a706be57ec55ebecf3fce35f7 Mon Sep 17 00:00:00 2001 From: Yoshman29 Date: Thu, 20 Oct 2022 17:40:15 +0200 Subject: [PATCH] fuck this --- buildnumber.txt | 2 +- source/funkin/game/Note.hx | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index 876cce90..3114067d 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -654 \ No newline at end of file +664 \ No newline at end of file diff --git a/source/funkin/game/Note.hx b/source/funkin/game/Note.hx index ac43a7e1..d6bb5160 100644 --- a/source/funkin/game/Note.hx +++ b/source/funkin/game/Note.hx @@ -193,14 +193,20 @@ class Note extends FlxSprite // updates sin and cos values for angle updateTrig(); + + // var sin = _sinAngle * _sinAngle * (_sinAngle > 0 ? 1 : -1); + // var cos = _cosAngle * _cosAngle * (_cosAngle > 0 ? 1 : -1); + var sin = _sinAngle; + var cos = _cosAngle; + var anglePos = FlxPoint.get( - (-_cosAngle * pos.x) + (_sinAngle * pos.y), - (_sinAngle * pos.x) + (-_cosAngle * pos.y)); + (-cos * pos.x) + (-sin * pos.y), + (-sin * pos.x) + (-cos * pos.y)); // applies new values x -= anglePos.x; y -= anglePos.y; - offset.set(origin.x, origin.y); + offset.set((cos * origin.x) + (sin * origin.y), (sin * origin.x) + (cos * origin.y)); // draw super.draw();