Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How to make enemies take wider routes?

$
0
0
I'm currently using A* pathfinding to mainly control my enemy's movement, however, I'm having a problem with it being constantly in contact with the collider, and it struggling to get around the corners. I would make the margins wider, but the problem there is that its destination is next to the collider, so that's not an option. The yellow boxes in the image are the potential destinations. Any advice or ideas? Thanks in advance! ![alt text][1] [1]: /storage/temp/143598-example.png

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>