Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

how to see spherecast?

Discussion in 'Scripting' started by EliJNemer, Oct 11, 2019.

  1. EliJNemer

    EliJNemer

    Joined:
    Aug 3, 2019
    Posts:
    83
    hello,

    how is it possible to see a spherecast?
     
  2. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    6,741
    you'd have to render your own visualization of the spherecast based on the data you're sending to the spherecast.
     
  3. EliJNemer

    EliJNemer

    Joined:
    Aug 3, 2019
    Posts:
    83
    thank you,

    i can simply instantiate an object an then put the objects transform.position to the hit.point..

    but i do not exacly what the hit.point i want the center of the hit.point which from the sphere cast.
    this picture should demonstate what i mean.. is this possible in a simple way? i was able to do it through calculation but it doesnt work for all situation im hoping for something simpler and better..

    Untitled.png

    i would think the hit.point would give the intersection of the 2 spheres
     
  4. canis

    canis

    Joined:
    Oct 25, 2013
    Posts:
    65

    Attached Files:

    Last edited: Oct 11, 2019