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

Help with obstacle avoidance for 2D top-down game

$
0
0
Hello everyone, I need help implementing an obstacle avoidance maneuver for enemies in a 2D top-down game. The obstacles have the layer and tag 'Asteroid' or 'Station', and the enemies should navigate around them while taking their size into consideration (for example, by using sprite.bounds). The enemies are implemented as Rigidbody2D and can freely rotate and move in 360 degrees. Additionally, they are following the player. Asteroids are dynamically spawned in the world. I would greatly appreciate your help in solving this problem without using an A* algorithm. Thank you in advance!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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