making a trail behind a moving object?

Hi Forum

I have an app that shows airtraffic in a 3d space.

The positions of the planes are updated every 30 seconds or so (using data from a webservice).

What I’d like to do is show a trail (some colored line) behind the airplanes that shows the path the airplane took so far.

Any hints how I could do that? (I did the same in second life some time ago and there I used particles - this might be a little overhead, on the iPhone, though, since I have some 40 planes - sometimes even more - on the screen at once).

Thanks for any help!

1 Like

If you want to create a trail ,then you can use TrailRender,i.e, Component->Particle->Trail renderer. Using this you can easily create trail with any game object.

Thanks for pointing me to the right direction… alas, I cant’ get this to work.
As suggested on the Trailrenderer-page, I made an empty GameObject with a Trailrenderer in it and then I attach this to my airplanes.

But there are no trails?

Ok - sorry, I got it…

That’s what I came up with (and it’s working… :slight_smile:

Thanks again for the help!

1 Like