60 SetTransformType(FGForce::tCustom);
71 element = thruster_element->
FindElement(
"location");
75 log << LogFormat::RED <<
" No thruster location found."
76 << LogFormat::RESET <<
"\n";
79 SetLocation(location);
81 string property_name, base_property_name;
82 base_property_name = CreateIndexedPropertyName(
"propulsion/engine", EngineNum);
84 property_name = base_property_name +
"/x-reference-position";
85 PropertyManager->Tie(property_name.c_str(), (
FGForce*)
this, &FGForce::GetLocationX);
86 property_name = base_property_name +
"/y-reference-position";
87 PropertyManager->Tie(property_name.c_str(), (
FGForce*)
this, &FGForce::GetLocationY);
88 property_name = base_property_name +
"/z-reference-position";
89 PropertyManager->Tie(property_name.c_str(), (
FGForce*)
this, &FGForce::GetLocationZ);
90 property_name = base_property_name +
"/x-position";
91 PropertyManager->Tie(property_name.c_str(), (
FGForce*)
this, &FGForce::GetActingLocationX, &FGForce::SetActingLocationX);
92 property_name = base_property_name +
"/y-position";
93 PropertyManager->Tie(property_name.c_str(), (
FGForce*)
this, &FGForce::GetActingLocationY, &FGForce::SetActingLocationY);
94 property_name = base_property_name +
"/z-position";
95 PropertyManager->Tie(property_name.c_str(), (
FGForce*)
this, &FGForce::GetActingLocationZ, &FGForce::SetActingLocationZ);
97 element = thruster_element->
FindElement(
"pointing");
104 mT(1,1) = pointing(1);
105 mT(2,1) = pointing(2);
106 mT(3,1) = pointing(3);
113 SetAnglesToBody(orientation);
114 property_name = base_property_name +
"/pitch-angle-rad";
115 PropertyManager->Tie( property_name.c_str(), (
FGForce *)
this, &FGForce::GetPitch, &FGForce::SetPitch);
116 property_name = base_property_name +
"/yaw-angle-rad";
117 PropertyManager->Tie( property_name.c_str(), (
FGForce *)
this, &FGForce::GetYaw, &FGForce::SetYaw);
122 property_name = base_property_name +
"/reverser-angle-rad";
123 PropertyManager->Tie( property_name.c_str(), (
FGThruster *)
this, &FGThruster::GetReverserAngle,
124 &FGThruster::SetReverserAngle);