idle grapple calculations have been solidified

I can now move into adding how player speed and height effect these
things
This commit is contained in:
Melbyj1125
2022-01-31 09:39:30 -06:00
parent 93d2ce9c40
commit e249e5d4d5
13 changed files with 46 additions and 30 deletions

View File

@@ -9,6 +9,8 @@ public class Bumper : MonoBehaviour {
// Is called whenever something collides with the bumper
void OnTriggerEnter(Collider objectHit) {
if (objectHit.transform.parent.gameObject.tag == "Player") {//Checks if the other object is the player
Debug.Log("Bump");
PlayerMovement playerMovement = objectHit.GetComponent<PlayerMovement>();
float DirBumpX = playerMovement.driftVel.x * -1;//Inverts the Player Velocity x