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

Enemy Pirate Ship AI

$
0
0
Hello, I am making a pirate game. I'm trying to achieve an enemy pirate ship AI. I've made an attempt but then scrapped it because it was terrible. Basically one idea I had was for the ship to follow you a certain distance, but when it gets into firing range, circle the target with one side facing the target. I've tried transform.RotateAround();, but for some reason when I try to subtract 90 from the y-axis to get the side to face the target, it just stays at a fixed (0,0,0) angle. Any help would be greatly appreciated!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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