// Get meshes and create colliders public static void SetUnyielding(RayfireRigid scr) { if (scr.simulationType == SimType.Inactive || scr.simulationType == SimType.Kinematic) { RayfireUnyielding[] unyArray = scr.GetComponents <RayfireUnyielding>(); for (int i = 0; i < unyArray.Length; i++) { unyArray[i].SetUnyByOverlap(scr); } } }