Skip to main content
Version: 3.8.0

Angle Between

angle between

Use Angle Between to calculate the angle between two vectors. Supported types: Vec2 and Vec3. Angle Between is in the Transform category.


NameData TypeDescription
AVec2The first vector.
BVec2The second vector.


NameData TypeDescription
ResultNumberThe acute angle between the two input vectors in radians.


angle between example


This example shows how to use Angle Between to detect if the ray from the camera is hitting the sphere within the 5 degrees. If it is, the sphere will turn red.

camera ray
angle between node