Vehicle AI avoidance
I'm making a racing game for a school project. I implemented a decent vehicle AI using waypoints and such. Basically it's working fine, except when there are multiple vehicles. They just collide with one another. What I want is to have them avoid/overtake each other as much as possible, just like in real racing.
How do I go about doing this? I'm using Blueprints, btw. Thanks!
asked Jan 16 '15 at 11:21 AM in Blueprint Scripting
You could try a NavModifier for your Cars. If you increase the entering cost to something really high they will move around them unless there is no other way. You add those under the components tab and decide which type of Area modifier they have. Implement a new one suiting your needs and select it.
This will only cause your cars to not crash anymore. If you want cool races with somewhat intelligent drivers you will need to do a whole lot more work on the AI itself.
I hope this helps.
answered Jan 16 '15 at 11:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here