Skip to main content
TikTok Effect House Platform Logo
Latest
Download
Log in
Transform

Angle Between

Calculate the angle between two vectors. Supported types: Vec2 and Vec3.

Input

NameData typeDescription
AVec2The first vector
BVec2The second vector

Output

NameData typeDescription
ResultNumberThe acute angle between the two input vectors in radians

Example

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

↓ AngleBetween.zip