I'm making a mini golf game and I need my ball to bounce realistically of the edges of my grass, which is an object, and I'm not sure how to do it, the edges of my grass on the x-axis are 80-520 and on the y-axis 170-330. I'm not very good at coding and would be a great help for my coursework so if anyone could help that would be great.
