Use fastSinCos for notes (#889)

* Update Strum.hx

* Update Strum.hx
This commit is contained in:
HEIHUAa
2026-01-25 12:18:18 +01:00
committed by GitHub
parent 6d3243b256
commit f8f9d6eb4a
+3 -2
View File
@@ -174,8 +174,9 @@ class Strum extends FlxSprite {
if (daNote.isSustainNote) offset.y -= height * 0.5;
if (Std.int(daNote.__noteAngle % 360) != 0) {
var noteAngleCos = FlxMath.fastCos(daNote.__noteAngle / PIX180);
var noteAngleSin = FlxMath.fastSin(daNote.__noteAngle / PIX180);
var noteAngle = FlxMath.fastSinCos(daNote.__noteAngle / PIX180);
var noteAngleCos = noteAngle.cos;
var noteAngleSin = noteAngle.sin;
var aOffset:FlxPoint = FlxPoint.get(
(daNote.origin.x / daNote.scale.x) - daNote.offset.x,