I just have a ball that jumps. When it hits a wall it jumps again, which I don't want. How do I make it so that when the ball hits the same object from the top side only and not the wall sides, it jumps?
The code is to jump when there is that object ground/wall, so this way there isn't infinite jumping.