These are my baby steps in the AI territory, I’m still learning the basics here.
I think I’ve figured it out how to get the desired location for the pawn.
I just get the projectile’s location then multiply it by the character’s right vector in order to get only the lateral position.
Then get character’s forward and up vector and multiply them by its location and then finally sum them all up.
It works in the sense that the destination location is exactly what it should be BUT the character still won’t move to that location, when I feed it the projectile’s location it moves only when they are lined up laterally…
The character is standing on a platform surrounded by a navigation mesh, when I feed to the Service rando locations it works just fine.
These are the BPs:
Character’s (note that ATM I’m testing only with one Projectile):
Service’s:
Behavior Tree’s: