mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 18:33:47 +00:00
Removed unnecessary rotation
This commit is contained in:
parent
cc684d6d44
commit
4f52d8db56
1 changed files with 4 additions and 3 deletions
|
|
@ -93,9 +93,10 @@ public partial class Bullet : Area2D
|
||||||
|
|
||||||
public virtual void RotateBullet(float degrees)
|
public virtual void RotateBullet(float degrees)
|
||||||
{
|
{
|
||||||
float radians = Mathf.DegToRad(degrees);
|
SetRotationDegrees(RotationDegrees + degrees);
|
||||||
_direction = _direction.Rotated(radians).Normalized(); // Rotate direction
|
// float radians = Mathf.DegToRad(degrees);
|
||||||
SetRotation(Rotation + radians);
|
// _direction = _direction.Rotated(radians).Normalized(); // Rotate direction
|
||||||
|
// SetRotation(Rotation + radians);
|
||||||
//Rotation = radians;
|
//Rotation = radians;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue