Fix RandomMovement stopping when touching an obstacle.