So, if i put
transform.Translate(0, 0, speed * Time.deltaTime);
in Update () I can make something travel along in Z. How can I make this happen once another variable happens. I am trying to make a grenade send spikes out once it is detonated. I can make the spikes travel by making the spikes a rigidBody and adjust the velocity. I just don’t want to use physics because I can’t lock it in only X and Z. All help would be appreciated.
I could use physics if I can make everything with a tag of “Spike” ignore everything else with a tag of “Spike” but I can’t think of a good way to do that either.