mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue