You can now place thrusters on different physics objects, such as controlCraft bearings, other physics bearings, or constraints created by vmod. Everything will work correctly.
The flight controller will recalculate all associated constraint objects, recalculate the center of mass position and moment of inertia tensor, and redistribute the thruster angles and thrust.
This process is very troublesome. At first, I directly converted the coordinates of each thruster from the own spacecraft to the world coordinates, and then converted them to the local coordinates of the parent spacecraft. However, due to the jitter in the constraint process (perhaps a synchronization problem), the coordinate conversion fluctuates within a certain range (the faster the spacecraft moves, the faster the fluctuation). This causes the calculation of the center of mass and moment of inertia tensor to jitter. The faster the flight, the more unstable the control result. So I tried to convert them all to the local coordinates of the parent without going through the world coordinate system mapping (using BFS to search for associated constraints and calculate the localPos offset of each constraint step by step). As a result, I got a perfect control effect, as shown in the video.
