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:
Melbyj1125
2022-02-01 20:32:55 -06:00
parent b2bd9783d4
commit c5ae603e8f
9 changed files with 91 additions and 28 deletions

View File

@@ -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;