Hi , i have a game that involves a ball you can throw and catch from a top down perspective. The walls stopping the ball from bouncing under the screen need to allow the ball to pass through them under a certain condition as the game is 2-player and split down the center of the screen(like a tennis court).
So at the moment the ball will bounce from wall to wall when thrown,
but i need the ball to be able to pass 'over' the center wall when a
certain button is held(in order to pass to the other player).
I can't seem to think of a way to do this without breaking something,
so if anybody has any idea's or similar experience in their own projects, i would like to hear them.
So, In conclusion i need the ball to be able to bounce off the wall when it's idly bouncing around, and pass through the wall(or over) when the player 'throws' it.