working on aiming

This commit is contained in:
2026-06-04 03:42:07 -04:00
parent c97b0e5cc2
commit cfc13d9350
4 changed files with 115 additions and 22 deletions
+2 -1
View File
@@ -22,7 +22,7 @@ public partial class Attack : RigidBody2D
{
base._PhysicsProcess(delta);
if (_speed != Vector2.Zero){
ApplyCentralImpulse(_speed);
LinearVelocity = _speed;
_speed = Vector2.Zero;
}
}
@@ -38,6 +38,7 @@ public partial class Attack : RigidBody2D
public void Shoot(Vector2 FORCE){
_speed = FORCE;
// Set("velocity", FORCE);
GravityScale = 1;
}