Question on Unity 5.

You can tell how to add a mesh on the Trail Renderer. And is it possible to get the intersection point of two Trail Renderer.

Update

I have a circle that moves and leaves a trace from the Trail Renderer. How to determine if there is an object that has touched the "tail"? I wanted to add a mesh collider and check using the OnCollisionEnter method.

  • Two different questions should not be written in one. - AivanF.
  • one
    What does adding a mesh on a Trail Renderer mean? you add a Trail Renderer to an object. And an object can have a mesh .... For example, when you add a sphere, it has a mesh. If you want it to leave a trace, then add an empty object to it, like children, and add a renderer to the descendant .... This is a more correct option ..... but be that as it may, you cannot throw a mesh on the renderer. This is nonsense - Alexey Shimansky
  • here are two questions related to one - Arman
  • I did not specifically ask the question, I mean the mesh collider - Arman
  • one
    @Arman Most likely, you will have to start an array, or even an ArrayList, in which every certain period of time will store the position of a Vector 3 object and delete it gradually while reducing the trail ... At the same time, check whether another object has one of the points of this Sheet whether it is inside or if it is ..... if yes, then do something ...... There is a less good example with the lineRenderer . theappguruz.com/blog/... you can try to adapt for yourself ... and there are a couple of moments with the trailRenderer - Alexey Shimansky

0