Get OrbitControls Azimuth Angle

Hi!
The plan is:

  1. Set wall’s normal, that defines wall’s front.
  2. Convert camera’s position in wall’s local space.
  3. Normalize that vector.
  4. Find the dot-product of wall’s normal and normalized camera’s position.
  5. If the result is less than 0, then the camera is behind the wall.

Example: https://jsfiddle.net/prisoner849/4yckxLmd/
Picture:

2 Likes