My definitons on what Acos, Dot means:
- Acos is used to find the angle when you have the sides (Adjacent/Hypothenus).
- Dot is used to compared how angles are alike to each other, and find the angle.
My Question: How does Acos work with Dot, when they are both used to find angles?
If Possible can you provide an example? Thank you.
- Example of somewhere it was used:
to rotate a 2d arrow based off a worldPoint.
Calculate the angle.
--We assume the default arrow position at 0° is "up"
local angle = math.deg(math.acos(Normalized2dDirection:Dot(cam.CFrame.UpVector)))