Hello everybody,
I'm trying to make pong in Greenfoot but I'm very new to it.
I want to make the ball bounce when it hits the wall.
I'm trying to change the rotation but I have no idea how I should do it.
Thanks in advance


setRotation(540-getRotation());
setRotation(360-getRotation());