Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Camera Boundaries

Discussion in 'Scripting' started by Morseton, Mar 26, 2016.

  1. Morseton

    Morseton

    Joined:
    Jan 15, 2016
    Posts:
    90
    I'm trying to get the intersection points between the camera boundaries and a plane( currently z = 28 )

    as you can see in this image:


    The lines in red/green delimitate the plane that I want to get when intersecting the camera boundaries with the plane z=28

    Basicly all I need are the equations of the 2 green lines:
    x = ?
    y = ?

    Does anyone know how to do this?

    thanks for your time
     
  2. mholub

    mholub

    Joined:
    Oct 3, 2012
    Posts:
    123