Angle Between

Calculate the angle between two vectors. Supported types: Vec2 and Vec3.
Input
Name | Data type | Description |
A | Vec2 | The first vector |
B | Vec2 | The second vector |
Output
Name | Data type | Description |
Result | Number | The 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.

