It is my compulsion to use rigidbody and box collider to all collided gameObjects (Where I have to detect collision)., i.e., I got some really big trouble as two object collide with each other, 2 times onTriggerEnter play which I surely don't want to do. Is there any way to control it.? Without removing Script and rigidbody to any object.
void OnTriggerEnter(Collider collidedAGV)
{
if (collidedAGV.tag == "cib" )
{
}
}
InstanceID
of both and only act if you are the lower ID! i wouldn't really recommend that as a solution here docs.unity3d.com/ScriptReference/Object.GetInstanceID.html – Fattie