Hi
Im looking for some help on a project. I have a robot which has to get from one side of the screen to the other where there is a goal avoiding obstacles. (barrels that are randomly placed)
I so far have the robot going over the barrel itself before moving right and carrying on.
How do i get the robot to move out the way of the barrel before actually hitting it? e.g. moving like a square before?

