Search Unity

Is it possible to collide with trail of trail renderer

Discussion in 'iOS and tvOS' started by yesimarobot, Apr 11, 2010.

  1. yesimarobot

    yesimarobot

    Joined:
    Jun 19, 2009
    Posts:
    24
    I have an object with a trail renderer. I want to detect a collision of this object with the trail of it's own trail renderer? Is this possible? My first thought was to drop a collider prefab every n seconds at the position of the object with the trail renderer and then detect collisions with the prefab.

    Thanks for any input you can provide.
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    There's nothing equivalent to a "trail collider", so dropping objects at regular intervals is a pretty good way to go. Performance may become a problem if the number of objects can get very large, though.
     
  3. yesimarobot

    yesimarobot

    Joined:
    Jun 19, 2009
    Posts:
    24
    My thought was to drop empty game objects with a sphere collider.