// Start is called before the first frame update void Start() { GameObject trail_obj = Instantiate(trail_prefab, new Vector3(0, 0, 0), Quaternion.identity); trail_obj.transform.parent = transform; trail = trail_obj.GetComponent <newton_trail>(); tracking = true; a_max = 2f; }
// Start is called before the first frame update void Start() { a = new Vector3(.1f, .1f, .1f); v = new Vector3(0, 0, 0); GameObject trail_obj = Instantiate(trail_prefab, new Vector3(0, 0, 0), Quaternion.identity); trail_obj.transform.parent = transform; trail = trail_obj.GetComponent <newton_trail>(); start_time = Time.time; }