This commit is contained in:
Marco 2025-03-13 16:59:16 +01:00
commit 036a36a80f
6 changed files with 42 additions and 18 deletions

View file

@ -119,17 +119,17 @@ public partial class Active : PlayerStateBase
var rightStickInput = _inputProvider.GetAimInput().Normalized();
// Update Facing Direction
if (!_isStrafing)
{
// if (!_isStrafing)
// {
if (rightStickInput.Length() > 0.1f) // If the right stick is moved
{
FacingDirection = rightStickInput.Normalized();
FacingDirection = rightStickInput;
}
else if (_movementDirection != Vector2.Zero) // Fall back to movement direction
{
FacingDirection = _movementDirection;
}
}
// }
_animationProvider.SetAnimation(MainObject.Velocity);