Example #1
0
        /// <summary>
        /// Creates a new trail.
        /// </summary>
        public void NewTrail(Transform transf, float wheelRadius)
        {
            if (Active) return;
            //Stops emitting the last trail and passes the parameters onto a new one
            EndTrail();

            Trail trail = new Trail(transf, material, decayTime, roughness, softSourceEnd, width, wheelRadius);
            trail.trail.transform.parent = skidTrailsDetachedParent;

            trails.AddLast(trail);
        }