Skip to main content

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.

Input​

NameData TypeDescription
AVec2The first vector.
BVec2The second vector.

Output​

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

Example​

angle between example

↓ angle_between.zip

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
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies