mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 04:35:53 +00:00
Mapping
This commit is contained in:
parent
7b6a43455d
commit
036a36a80f
6 changed files with 42 additions and 18 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue