World relocation

Hello,
I am programming a 6DOF game, space game in fact.
I wish to have a coordiante transformation on ennemy pawn, in the way that if me, as player, I see it in front of me, the ennemy pawn must have coordinate like 0,0,z because it is just front of me but forward me.

Is there a coordinate transformation for this?

I ve done something like this… when I point my ship to the target, y and z are near 0, and x is changing depending to the distance of my target.
Weirdly, I was supposing x was about right and left distance, y upside, downside distance, and z forward and behind distance.

I am thinking wrong?

78673-relocation.png