working on aiming
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user