you should use Physics.Ignore collision
this function has limitations so you should do it in Start function of each newly created dekk h700_… with all dekks. you can find all objects with one name using GameObject.Find function.
i can not understand how many of your objects are available in the scene or how many you would like to create
But I dont create these objects, thay are imported, maybe I can create a collision box for that gameobject, but at the moment I want to just setting ignore on collision between to objects that has been created with the editor…
Thanks for your help, my scripting knowledge is bad!
But I now got it!
//Find the hand inside Start and rotate it every frame
private var link : GameObject;
private var link01 : GameObject;
private var dekk : GameObject;
private var hekkrull : GameObject;
function Start () {
link = GameObject.Find("/VS491_rev3/h700_deck/H700_SB_Mellomlink");
link01 = GameObject.Find("/VS491_rev3/h700_deck/H700_SB_Mellomlink01");
dekk = GameObject.Find("/VS491_rev3/Dekk");
hekkrull = GameObject.Find("/VS491_rev3/Cylinder01");
Physics.IgnoreCollision(link.collider, dekk.collider);
Physics.IgnoreCollision(link01.collider, dekk.collider);
Physics.IgnoreCollision(hekkrull.collider, dekk.collider);
}