# How can I my homing missile avoid walls (2D)?

Okay, I have the homing missile implemented. It will follow the player, but I want it to avoid the walls. I tried out A* but I want to make my own. I need some help plzz.

• You can also look into "local avoidance". – Foxwarrior Apr 13 at 21:49
• What unwanted behavior did you observe from using the industry-standard A* algorithm, that you want to improve upon with your own version? We need to clearly understand what needs to be different about solutions we offer here. – DMGregory Apr 13 at 23:50

2. add missile pos & hitpoint pos divide by 3/4 or 4/8 or whatever it's up to u.