Feb 14, 2025
vector3
angle method simplifying this process.ref
and target
, both anchored.vector3
methods.ref
to target
.local dir = (target.position - ref.position).unit
local angle = math.deg(vector3.xAxis:Angle(dir))
math.deg
.local flatDir = dir * Vector3.new(1, 0, 1)
Vector3.yAxis
for xz
plane.