Personally, I'm not a big fan of triggers. It might be the way I'm using them, but sometimes they don't seem to function without issues.
I think it would be less 'heavy', to grab the positions of each objects and check the distance between them.
if(Vector3.Distance(object1.transform.position,object2.transform.position) <= minimumDistance){
TurnOnCollision();
}
↧