I want to turn my actor(ball) with the right angle, like when it hits the wall or the brick to turn with the same angle but in the opposite direction.. but i have to know the angle between the actor and the wall it hits


setRotation(180-getRotation());
setRotation(-getRotation());