13 lines
283 B
C#
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);
|
|
}
|
|
} |