From 4f52d8db56c8d97cc2f9140f81254ab3deaec59f Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Thu, 13 Mar 2025 23:04:06 +0100 Subject: [PATCH] Removed unnecessary rotation --- Scripts/Bullet.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Scripts/Bullet.cs b/Scripts/Bullet.cs index 31a3d294..d5713acd 100644 --- a/Scripts/Bullet.cs +++ b/Scripts/Bullet.cs @@ -93,9 +93,10 @@ public partial class Bullet : Area2D public virtual void RotateBullet(float degrees) { - float radians = Mathf.DegToRad(degrees); - _direction = _direction.Rotated(radians).Normalized(); // Rotate direction - SetRotation(Rotation + radians); + SetRotationDegrees(RotationDegrees + degrees); + // float radians = Mathf.DegToRad(degrees); + // _direction = _direction.Rotated(radians).Normalized(); // Rotate direction + // SetRotation(Rotation + radians); //Rotation = radians; }