Hello!
I hope I am well understood.
I’m trying to do an AI with blueprint, when the AI hits the player it stays still for a while and if the player dodges it it can go anywhere on the map.
I want to know how to do that, instead of just when the blow is over the ai turns towards the player to know how many degrees the player is to apply a turning animation to the AI.
I have my ai in a position for example (5,5,0) and my player in the position (10,20,0), if the ai has a rotation of (0,90,0) I want to know how many degrees it has to turn to face the player.
I have tried to explain myself as best as possible but I don’t know if I have been understood, my English is not very good either.
Thank you!
Thank you so much !!
You’re welcome
@scratscrat… useful! one thing though… I honestly thought the forward/up/right vectors are already normalized… though I’ll freely admit that I’m not a wizard with vectors
You’re right. Normalize has to be used to find the angle between two vectors, but in this specific case (Forward vector) not necessary. Thanks