Vector3.AngleBetween||doc136381

September 20, 2022

Format

Vector3.AngleBetween(lookVec1, lookVec2)

Describe

Calculate the angle between two vectors. It can be used to judge some conditions. For example, if the enemy has a certain field of vision, no player can be seen beyond 120 degrees.

parameter

Variable name Type Describe
lookVec1 Vector3 Direction vector 1
lookVec2 Vector3 Direction vector 2

Return value

Type Describe
float Included angle