I would like to find the horizontal angle offset from point A to B. For example, if point A was looking directly at Point B, the angle offset would be zero. Directly to the left would be -180, and to the right would be 180. What are some ways I could do this?
Currently, I have something like this:
let yaw = Math.atan2(delta.x, delta.z) * 180/3.14159;
but this code would get the angle relative to the x and z axis.