i have a bullet hole decal which basically spawns where my projectile hits, BUT i want it to spawn on tagged objects only. such as metal, how could i modify my script to do that? ive searched the docs couldn’t find much.
heres my script cut up.
var bulletHole : GameObject;
// create a bullet hole object at hit point and rotation
var newBulletHole:GameObject = Instantiate(bulletHole, contact.point + contact.normal * .001, rotation) as GameObject;