how get the collision vector?

Hello guys I am having a difficulty finding a way to get the vector of a collision between 2 objects. I’m showing an example below that vector exactly I need.
How do i get it?


I did an attempt but I’m not sure if ti was what you wanted, see attached blend.
I parented an empty at the middle of the cube A. This same empty is always 3D tracking Cube B. When the two cubes collides, the ray (which will point to the collision point) will return the Hitnormal and the hitposition.

you can move cube A with WASD keys.


vectorpoint.blend (138 KB)