nbcfrosty
Well-known member
Hello. I want to transmit the child vessel's thrust forces to the parent. I am trying to do this:
But in practice the parent vessel goes flying out of the atmosphere. Any help with this would be greatly appreciated.
Code:
VECTOR3 childThrustVector, globalThrust, parentLocalThrust;
auto child = oapiGetVesselInterface(attach.child);
child->GetThrustVector(childThrustVector);
child->GlobalRot(childThrustVector, globalThrust);
v->Global2Local(globalThrust, parentLocalThrust);
v->AddForce(parentLocalThrust, attach.pos);
But in practice the parent vessel goes flying out of the atmosphere. Any help with this would be greatly appreciated.