fixing the manlting into geo
This commit is contained in:
@@ -485,15 +485,17 @@ public partial class PlayerController : CharacterBody3D
|
||||
|
||||
public void HandleAirborne(float delta)
|
||||
{
|
||||
|
||||
MoveInAir(delta);
|
||||
if (isOnFloorCustom())
|
||||
_playerState.SendEvent("grounded");
|
||||
|
||||
if (IsTryingToMantle()) _playerState.SendEvent("mantle");
|
||||
|
||||
|
||||
if (!WallHugSystem.IsWallHugging())
|
||||
{
|
||||
_isWallJumpAvailable = true; // reset wall jump if we left the wall
|
||||
return;
|
||||
}
|
||||
|
||||
// Going upwards, we stay simply airborne
|
||||
if (Velocity.AngleTo(Vector3.Up) < Math.PI / 4)
|
||||
@@ -640,7 +642,10 @@ public partial class PlayerController : CharacterBody3D
|
||||
|
||||
if (_onWallHuggingCoyoteEnabled.Active || _onWallRunningCoyoteEnabled.Active)
|
||||
{
|
||||
if (!_isWallJumpAvailable) return;
|
||||
if (!_isWallJumpAvailable)
|
||||
{
|
||||
OnJumpFromWall();
|
||||
}
|
||||
}
|
||||
_playerState.SendEvent("jump");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user