Search Unity

how to see spherecast?

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

  1. EliJNemer

    EliJNemer

    Joined:
    Aug 3, 2019
    Posts:
    123
    hello,

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

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,531
    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:
    123
    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:
    79

    Attached Files:

    Last edited: Oct 11, 2019
    Ony, Shamantiks, Radicals270 and 4 others like this.