increase scale on terrain collision or set time? grenades.

im trying to add bombs or grenades to my game.

what im trying to achieve is to increase the objects scale when it hits the ground OR increase it when the time expires (like a grenade).

any help? total newbie here.

Are you trying to increase the scale of a collider to simulate the shockwave?

I would simply enable a big Trigger Collider (on a child object) on collision, either instantly, or using Invoke().

If you really need it growing, you can use

public float targSize = 5;

transform.localScale = Vector3.Lerp(transform.localScale, Vector3.one * targSize, 0.1f);