Skip to main content

Vector3.Angle(Vector3 from, Vector3 to)

Returns the angle in degrees between from and to.

Parameters:

NameTypeDescription
fromVector3The vector from which the angular difference is measured.
toVector3The vector to which the angular difference is measured.

Returns:

typeDescription
numberthe angle in degrees between from and to.

Usage

---@type Vector3
local from;

---@type Vector3
local to;


local val0 = Vector3:Angle(from, to)