I have a top down 2D game, and I need the enemy to go from its current position to a different one (I know the location of where it needs to go). Currently, I rotate the enemy to face the new position, and then make it go forward. However, if there's a collider in the way then of course it will just bump into it and get stuck. How do I get it to go around colliders and add some basic pathfinding? Any advice is greatly appreciated!
↧