fixed up player direction fields

This commit is contained in:
Lilith Schier 2026-08-31 10:54:16 +02:00
parent 6c55d719ff
commit c97d645a8c

View file

@ -58,9 +58,10 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
public bool IsJumping => !JumpTimer.IsStopped();
/// The direction the player is currently holding.
/// This vectors components should always be -1/0/1.
private Vector2 _currentRawDirection = Vector2.Zero;
/// This vector's components should always be -1/0/1.
private Vector2 _currentDirection = Vector2.Zero;
/// The raw direction the player is currently holding, no guarantees.
private Vector2 _currentRawDirection = Vector2.Zero;
public bool IsFacingRight { get; private set; } = true;
private AnimationNodeStateMachinePlayback _playback = null!;