momentum grappling issue solved

Need to adjust smaller things but swing feels more complete
This commit is contained in:
Melbyj1125
2022-01-21 03:08:58 -06:00
parent c881e37b9c
commit 3306da25ba
2 changed files with 19 additions and 6 deletions

View File

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