mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
FPS counter
This commit is contained in:
parent
a9abec3573
commit
d25696425b
6 changed files with 48 additions and 21 deletions
|
|
@ -93,11 +93,10 @@ public partial class Bullet : Area2D
|
|||
|
||||
public virtual void RotateBullet(float degrees)
|
||||
{
|
||||
SetRotationDegrees(RotationDegrees + degrees);
|
||||
// float radians = Mathf.DegToRad(degrees);
|
||||
// _direction = _direction.Rotated(radians).Normalized(); // Rotate direction
|
||||
// SetRotation(Rotation + radians);
|
||||
//Rotation = radians;
|
||||
//SetRotationDegrees(RotationDegrees + degrees);
|
||||
float radians = Mathf.DegToRad(degrees);
|
||||
_direction = _direction.Rotated(radians).Normalized(); // Rotate direction
|
||||
SetRotation(Rotation + radians);
|
||||
}
|
||||
|
||||
public virtual void RotateSpriteDegrees(float degrees)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue