Search Unity

Angle between plane and camera

Discussion in 'Scripting' started by Rhuantavan, May 5, 2006.

  1. Rhuantavan

    Rhuantavan

    Joined:
    Feb 23, 2006
    Posts:
    53
    I am trying to get the angle between a mesh (plane) and the main camera, because I need to fade out the plane when the camera sees it from a certain angle.

    What would be the easiest way to get the angle between the mesh and camera? Thanks for this one, cause my math sucks. :oops:
     
  2. drJones

    drJones

    Joined:
    Oct 19, 2005
    Posts:
    1,351
  3. Rhuantavan

    Rhuantavan

    Joined:
    Feb 23, 2006
    Posts:
    53
    Thanks a lot drJones!