How do you have a ball collide with a wall?

I'm making a golf game and have walls for the ball to bounce off of. how can i have the ball bounce realistically? My current Collision is:

1 Like

see the examples from Scott here
I did a search for bouncing ball

EDIT: and of course you always can do a search here in the community...
I found for example this thread for you


there is a Bounce function for balls. you just need to judge where is the wall, on north or south or east or west of the ball.