Search Unity

Object trail on a Plane

Discussion in 'General Graphics' started by Raresian, Dec 3, 2016.

  1. Raresian

    Raresian

    Joined:
    Feb 12, 2015
    Posts:
    5
    I've been trying to make an object (let's say a Cube), leave a trail on a plane when it moves (it will only move forward and rotate).
    The question is, what would be the best way to draw a simple trail (like the one pictured in the attached photo), that would use the fewest resources?

    Thank you!
    Codrin
     

    Attached Files:

  2. Torbach78

    Torbach78

    Joined:
    Aug 10, 2013
    Posts:
    296
    the trail system is 2d (it turns to face cam), you need a ribbon system to lay 'track' down like tire skids that lay flat...., but the system(s) will stretch your texture they lock UV's to 0-1 never lerp or generate overlapping UV tiles

    asset store has better trails/ribbons at the moment,



    i forget if 5.5 is adding these features
     
    theANMATOR2b likes this.
  3. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    5.5 adds local space lines/trails. I.e. They don't face the camera. Maybe it will help :)
     
    theANMATOR2b likes this.
  4. Raresian

    Raresian

    Joined:
    Feb 12, 2015
    Posts:
    5
    Is there any other way to draw the trail without using the built-in TrailRenderer?
    The reason I'm asking is because the TrailRenderer is not that smooth when it comes to turning/rotating, leaving some 'spikes' when rotating at a low speed.