TL;DR at the bottom.
First, sorry if this isn’t the best place for this as I do not actually have any code related problems but rather want to find the best way to do something. Also the navigation forum part seems to be more related to navmesh so I wasn’t sure where to post this. So if this is in a wrong section, I’m sorry about that.
I’ve been wanting to build spaceship AI for a while and I have been looking into different concepts and trying to figure out which way I should go. However I’ve been unable to decide what I want to do. The only thing that is truly a problem is proper pathfinding as everything else is rather simple to create.
This scene would be based in a rather empty space area, however the biggest problem is that sometimes the AI would need to dodge moving objects and perhaps even need to navigate through more complex areas. Also this script would include a state machine for some basic stuff like: Seeking, Engaging, Tracking, Fleeing, Evading and stuff like that.
Now for a solution I’ve thought about 3 different thing.
1. Create 3D nodes and use A* for pathfinding. To be honest I’m not even entirely sure if this is possible/recommended as I’m unable to find any proper videos or tutorials when it comes to 3D nodes, all I can find is 2D. Doing it layer style could also work but with or without it, doing pathfinding like this sounds EXPENSIVE. Especially considering that it needs to be updated for moving objects.
2. Waypoints and ray casting to avoid objects. This one is pretty simple and easy to make but it doesn’t seem like the best possible solution. There are plenty of tutorials for this one and AI in general with waypoints but I want to consider other options before using this.
3. Also there is something called “Steering Behaviors for Autonomous Characters”. I did some reading about this but it seems rather complex and I’m not even sure if this is what I’m looking for. So if someone understands this concept well I would be very happy if you could explain it to me or just simply say whether I should use it or not. I’m actually going to take a look into it right now so… yea.
If you have any suggestions for any methods or general tips, I’d be glad to hear about them. Also if you know a really good tutorial or methods for creating realistic spaceship physics I’m also interested into them. If you want to discuss more about this you can add me on skype (PM for that).
Just to make sure this doesn’t become a big discussion thread I will accept any response as an answer that actually helps me to decide/find a good way of doing this. Also I’m not looking for ready scripts, however examples are nice.
TL;DR
I’m looking for a good way to handle spaceship navigation in a rather empty (but sometimes possibly complex) area.