Advertisement
Guest User

Untitled

a guest
Feb 10th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. if (rb.velocity.y < 0) {
  2. rb.velocity += Vector3.up * Physics.gravity.y * (fallMultiplier - 1) * Time.deltaTime;
  3. } else if (rb.velocity.y > 0 && !Input.GetButton("Jump")) {
  4. rb.velocity += Vector3.up * Physics.gravity.y * (lowJumpMultiplier - 1) * Time.deltaTime;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement