How would I code it so that it bounces off realistically?
That is what I have so far. This is puzzling me a great deal, so help is greatly appreciated. I understand that the angle it hits the platform at is the angle it leaves at.
public void bounceOff(Actor object)
{
int angle = object.getRotation();
getMovement().setDirection(angle-90);
}

