http://gist.github.com/cbc554a5aab2350b847d
Experimenting with hitTest function. It's a bit rough, I am still learning, but I thought it could be helpful. The idea is you have two objects with "bounding boxes" and this function tells which direction the object is being struck. Used in this example to push one box with the other.
ATM it only works on box-shaped bounding boxes but that would be easy to change. Let me know what you guys think and how to improve!
It also has a couple side features like the size of the boxes changes dynamically according to the gravity.z .. Just ignore those haha the really interesting part for game design is the hit test.