This method is called when your robot collides with a wall. You should override it in your robot if you want to be informed of this event.
The wall at the top of the screen is 0 degrees, right is 90 degrees, bottom is 180 degrees, left is 270 degrees. But this event is relative to your heading, so: The bearing is such that {@link Robot#turnRight(double) turnRight} {@link HitWallEvent#getBearing() (event.getBearing())} willpoint you perpendicular to the wall.
Example:
void onHitWall(HitWallEvent event) { out.println("Ouch, I hit a wall bearing " + event.getBearing() + " degrees."); }
@param event the hit-wall event set by the game
@see HitWallEvent
@see Event