Hello. I’m a novice of Unity. There are some questions how to give shape to the fuctions that I want.
In the black screen where all the lights are blocked out, if objects walk around I want to insert the sound of footstep(It really doesn’t have to be a foot step. It can be a sound such as the water drop sound from the tap or a sound made by a dropping book) in the space(part) they have moved.
I want to visualize that sound. So I would make the sphere from the center of the source of sound. If the sphere meets another object, the touched part(between sphere and the object) would be expressed as white line. But it’s difficult for me to realize which fuction I should select in Unity.
Which fuction should I use? Collider, Raycast or Shader?
To play sound at an object position
To draw a sphere, add a sphere primitive and control it’s size with a Coroutine… Mathf.Lerp(0f,maximumSize, time) where time would be 0f and add Time.deltaTime every frame.
To draw that line, you’d need few more years in Unity to get into shaders through pain and suffering.
But actually depth buffer would tell you if that pixel is close to an already drawn surface, so you could draw it just when it’s near. The shader would need to be in transparent order or even further and should draw on both sides. I doubt this will lead you to get the result you want, but as I said previously, you’ll need to learn it through trials and suffering. Good luck you little ones.