void FixedUpdate() { WheelHit groundHit; wheel_col.GetGroundHit(out groundHit); float wheelSlipAmount = Mathf.Abs(groundHit.sidewaysSlip); if (wheelSlipAmount > startSlipValue) //if sideways slip is more than desired value { Vector3 skidPoint = groundHit.point + 2 * (skidCaller.rigidbody.velocity) * Time.deltaTime; lastSkidmark = skidmarks.AddSkidMark(skidPoint, groundHit.normal, wheelSlipAmount / 25.0F, lastSkidmark); } else { lastSkidmark = -1; } }