mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
swing feels a lot more complete
Takes into accoutn player height and speed need to adjust slightly for better ingame feel when it is implemented into the levels.
This commit is contained in:
@@ -220,6 +220,7 @@ public class dPlayerMovement : NetworkBehaviour
|
||||
}
|
||||
//Move Player
|
||||
if(grapple.isGrappled && !isGrounded){
|
||||
driftVel = Vector3.zero;
|
||||
moveController.Move(((moveY + grapple.forceDirection) * Time.deltaTime));
|
||||
}
|
||||
else{
|
||||
@@ -236,7 +237,7 @@ public class dPlayerMovement : NetworkBehaviour
|
||||
{
|
||||
WallCheck();
|
||||
//If nothing is pressed speed is 0
|
||||
if ((Input.GetAxis("Vertical") == 0.0f && Input.GetAxis("Horizontal") == 0.0f) || isSliding ||(grapple.isGrappled && !isGrounded))
|
||||
if ((Input.GetAxis("Vertical") == 0.0f && Input.GetAxis("Horizontal") == 0.0f) || isSliding || (grapple.isGrappled && !isGrounded))
|
||||
{
|
||||
pStats.CurVel = 0.0f;
|
||||
return pStats.CurVel;
|
||||
|
||||
Reference in New Issue
Block a user