mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
Fixed an issue with wallrun moving the player up
Still needs adjustments to be more flexible and maybe allow the player to wall run from standing still to allow for vertical wallrun sections.
This commit is contained in:
@@ -445,6 +445,10 @@ public class dPlayerMovement : NetworkBehaviour
|
||||
|
||||
//if wallrunning apply different gravity
|
||||
if(wallRun.IsWallRunning()){
|
||||
if(wallRun.firstAttach){
|
||||
g = 0;
|
||||
wallRun.firstAttach = false;
|
||||
}
|
||||
GravityCalculation(2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user