Trigger for collision detection

Anybody know how to write condition for sense the collision of 2 objects, which is in motion?

Thanks in advance.