Files
godot-host-test/Game/Projectile/Projectile.cs
T
redglow e7dbb9cabb .
2026-07-21 20:49:24 +02:00

13 lines
283 B
C#

using Godot;
namespace GodotHostTest.Game.Projectile;
public partial class Projectile : Node2D
{
[Export] private float _speed = 100;
public override void _PhysicsProcess(double delta)
{
Position += (float)delta * _speed * Vector2.Up.Rotated(Rotation);
}
}