Simple knockback implementation

This commit is contained in:
Marco 2025-05-06 16:06:00 +02:00
commit 78fe44e6ec
10 changed files with 96 additions and 8 deletions

View file

@ -44,6 +44,8 @@ public partial class NavigationMovementModule : Node2D
var nextPathPosition = _navigationAgent.GetNextPathPosition();
var newVelocity = currentAgentPosition.DirectionTo(nextPathPosition) * movementSpeed;
newVelocity += StorageModule.KnockbackVelocity;
if (_navigationAgent.AvoidanceEnabled)
{