I have a game where you roll a ball around and collect yellow spheres. Right now, you can move horizontally and vertically, but I want there to be a way the player can make the ball jump. How would I do that? (I only use C-Sharp script) All answers are appreciated. Thanks in advance!
It would be useful to google the issue before posting it.
Nevertheless, a few examples are given. The first one is if you want to use the standard physics and rigidbody. The second is custom solution for gravity behaviour.