Get position relative to another

So I’m working on a game that’s a bit of a 2D/3D hybrid. Players control airplanes across a 2D field while said field flies through the game environment. The idea is to create something accessible, yet cinematic.

To properly be able to apply thrust to move the 3D planes to their correct position, I need to know their relative positions to their “master”. The 3D planes aren’t children of their 2D representations.

@Hogge Assuming that you want to know position of all your planes relative to same 2D object you can do

Vector3.Distance(plane.transform.position , master.transform.position)

this way you can know each plane’s position relative to it’s master in a scalar value you can then play around with the values of plane however you want