(1/5)
Hope this answers your question!
In this video, the AI for this is rather simple.
Throughout the fight the AI is constantly trying to fire its weapons.
At the same time, it is doing its best to be vertically at the same height as its target.
Hope this answers your question!
In this video, the AI for this is rather simple.
Throughout the fight the AI is constantly trying to fire its weapons.
At the same time, it is doing its best to be vertically at the same height as its target.
Comments
The AI will not adjust itself vertically until its target is outside of a configurable range (i.e. 1000 units above/below).
When its target is outside that range, it will do its best to move itself vertically to where its target is.
However, in future videos, I will be showcasing vertical strafing.
The way that functions is the AI performs a vertical strafe on top of whatever else its doing at the moment.
This is controlled through a vertical strafe behavior profile which is nested in other states behavior profiles.
The profile has definitions for: random min/max delay for checking if it can vertical strafe, random min/max duration for how long to perform the strafe, minimum energy before abandoning, if it should strafe only while being attacked, and if it can strafe immediately upon switching states