- Home /
Render Line Trailing Player
This topic is so elusive to me that I'm not even sure how to title this question. Anyways, as with the game "Sunset OverDrive" where there's some line/texture following the player, or with the new game Jumpiter Jump on the iOS market, I often see things trailing the player. I'm pretty much just wondering how this is done? Documentation? Links to tutorials? Strange approaches? Black magic?
If anybody can shed any light on the topic, feel free to do so in this thread. Like I said, the concept of what it is is so elusive that I don't even know how to properly ask what it is I want to learn, much less where to go to learn it.
Here's an image to help you get the idea of what I'm looking to look into:
https://www.youtube.com/watch?v=kdUfidcECLs
That video has similar information, but I wouldn't want to instantiate and destroy particles over and over to achieve this effect, due to performance issues.
Answer by Clet_ · Jun 22, 2014 at 11:37 PM
You might want to take a look into the LineRenderer class.
It works with an array of Vector3, representing your line path.
thank you! I will look into those while observing the link below from youtube. I'm glad I could at least articulate my curiosity lol
Answer by Tekksin · Jun 22, 2014 at 11:38 PM
While writing up this question, I ACCIDENTALLY used the word "trail" and I started researching that and found this video: https://www.youtube.com/watch?v=Bqcu94VuVOI
So there we go! that's the basics of this stuff lol, sorry if this is all filler, but maybe someone is as curious as I am. I'll leave it up, but this can be closed or deleted depending on who cares.
Answer by Kiwasi · Jun 22, 2014 at 11:38 PM
I've used a particle system to achieve a similar effect. These are relatively optimised and take care of themselves. Run fine on a PC until you get several thousand particles with collision detection.
Your answer
![](https://koobas.hobune.stream/wayback/20220613152257im_/https://answers.unity.com/themes/thub/images/avi.jpg)