Greetings gentlemen,
I'm new to this forum and I hope this is the right section since by the looks of the other ones they host more complex stuff than I'm asking and in need of help to.
I'm working to a project in Unreal Engine 4.26 bluepritns where two opponents standing on platforms facing and throwing discs at each other in order to hit the walls behind them which affect the tiles of thew platform they are standing on.
I'm struggling with the AI character movement: I have a basic behavior tree which the opponent keep tracks of discs and moves laterally on the platform according to the disc's position with. I calculate the character's destination by subtracting the character's and disc's location then multiplying the result for the character's right vector and finally add it to the character's location.
That works fine until the discs move directly from and to the characters, along their forward vectors to be clear, but when the discs fly diagonally the character's destination is totally all over the place.
How can I properly calculate the character's position?