When a collision happens, get the centers of the two colliding objects (I'm assuming you know their positions and sizes), and compute the angle between them. This will require basic trigonometry. Standard functions like sin/cos are probably enough, though I think Thor has some useful vector arithmetic methods.