mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
Changed how slope detection works
There is a bug with the camera
This commit is contained in:
@@ -28,7 +28,7 @@ public partial class PlayerMovement : MonoBehaviour
|
||||
if (m_OnSlope)
|
||||
{
|
||||
// Calculates better move direction for sliding
|
||||
m_MoveDir = Vector3.ProjectOnPlane(m_MoveDir, m_SlopeHit.normal).normalized;
|
||||
m_MoveDir = Vector3.ProjectOnPlane(m_MoveDir, m_StandingOn.normal).normalized;
|
||||
}
|
||||
|
||||
// Runs correct update function depending on player state
|
||||
|
||||
Reference in New Issue
Block a user