CUTTTTTAAAAA

This commit is contained in:
2023-09-03 23:10:58 -07:00
parent 1ae76971f7
commit 6ff28bce60
16 changed files with 123 additions and 49 deletions

View File

@@ -4,9 +4,23 @@ public partial class CutterShot : Projectile
{
[Export]
private PathFollow3D _pathFollow;
[Export]
private Sprite3D _sprite;
public override void _Ready()
{
_pathFollow = GetNode<PathFollow3D>("Path3D/PathFollow3D");
}
public override void _PhysicsProcess(double delta)
{
_pathFollow.Progress += Speed * (float)delta;
_pathFollow.Progress += 10f * (float)delta;
if (Mathf.IsEqualApprox(_pathFollow.ProgressRatio, 1.0f))
QueueFree();
}
public override void _Process(double delta)
{
_sprite.RotateY(25);
}
}