I need to know when two objects are colliding in a third script, for example:
I have two objects, firstObject and secondObject, but in these objects I don’t want to attached scripts, a third script in a other object has a reference to this object, and in this script I want to know when the two objects are colliding, something like this:
public bool TheseObjectsAreColliding(GameObject firstObject, GameObject secondObject)
Is there a way to do that?