get collision info from main script?

Is there a way to get collision info from a main script, or does onCollisionEnter only fire if it’s in a script attached to the colliding gameObject. I have a main script which is on a gameObject that does not collide with anything but I want to detect collisions happening on all the other game objects in the scene

u might want to add a script to the object that collides that sends the collision info to the main script when it collides.