mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
Now able to look any direction during wall ride
Also made a key bind for wallride
This commit is contained in:
@@ -19,7 +19,7 @@ public partial class PlayerMovement : MonoBehaviour
|
||||
bool canSlide = !(Mathf.Abs(vel.x) < m_SlideRequiredSpeed && Mathf.Abs(vel.z) < m_SlideRequiredSpeed);
|
||||
|
||||
// Checks if the player is in the wall running state
|
||||
if (m_HitLhsWall || m_HitRhsWall)
|
||||
if (GetNormalOfClosestCollider(out m_WallNormal) && m_WallRunKeyPressed)
|
||||
{ m_State = PlayerState.WALL_RUNNING; }
|
||||
|
||||
// Checks if the player is in the wall riding state
|
||||
|
||||
Reference in New Issue
Block a user