Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Question Is there a way to check if a ray cast through an area(not collider)

Discussion in 'Physics' started by ununion, Jan 24, 2021.

  1. ununion

    ununion

    Joined:
    Dec 2, 2018
    Posts:
    275
    I just want to check if the ray touch the area declare by distance(vector3) and size(vector3),because I don't wan t to use gameobject and boxcollider to waste performance.
     
  2. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    ununion likes this.
  3. ununion

    ununion

    Joined:
    Dec 2, 2018
    Posts:
    275