Knowledge Base: How do you get the angle between two vectors with Blueprints?

Article written by Dan H.
While there is no direct Blueprint node that calculates the angle, what you can do is calculate this result math nodes. The Dot Product can be used to determine how close two normal vectors are…

https://dev.epicgames.com/community/learning/knowledge-base/GD3X/unreal-engine-how-do-you-get-the-angle-between-two-vectors-with-blueprints

4 Likes

C++

FVector Vector1;
FVector Vector2;

float AngleInDegrees = FMath::RadiansToDegrees(FMath::Acos(Vector1.GetSafeNormal().Dot(Vector2.GetSafeNormal())));