question regarding collisions

I am currently developing a car racing game. inside the map there a several power ups that can be hitted by the player’s vehicle… my question is, how can i make the power up object (“3d object”) vanish after it is hitten by a player’s vehicle?

Object.Destroy().

how can i use it sir?

You just have to click on the link he provided, and read : everything is explained and detailed there.

@tunabelly14
In the collider of your 3d power up, check its “is Tirgger” check box. and use the following code in the script of the power up.

function OnTriggerEnter (other : Collider) {
Destroy(gameObject);
}