mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 09:54:28 -05:00
momentum grappling issue solved
Need to adjust smaller things but swing feels more complete
This commit is contained in:
@@ -220,8 +220,14 @@ public class dPlayerMovement : NetworkBehaviour
|
||||
if(animator != null) animator.SetBool("isRunning", false);
|
||||
}
|
||||
//Move Player
|
||||
moveController.Move(driftVel + (moveY * Time.deltaTime));
|
||||
if(grapple.isGrappled) moveController.Move(grapple.forceDirection * Time.deltaTime);
|
||||
if(grapple.isGrappled && !isGrounded){
|
||||
moveController.Move(driftVel + ((moveY + grapple.forceDirection) * Time.deltaTime));
|
||||
}
|
||||
else{
|
||||
moveController.Move(driftVel + (moveY * Time.deltaTime));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user