1
0
Fork 0

Vivian caught some missing length conversions in the gear offset

properties (What are these for?  I have no memory of these
properties...)
This commit is contained in:
andy 2005-10-14 21:27:33 +00:00
parent bd917a47d8
commit 2b57eb167a

View file

@ -142,9 +142,9 @@ void YASim::init()
SGPropertyNode * node = fgGetNode("gear/gear", i, true); SGPropertyNode * node = fgGetNode("gear/gear", i, true);
float pos[3]; float pos[3];
g->getPosition(pos); g->getPosition(pos);
node->setDoubleValue("xoffset-in", pos[0]); node->setDoubleValue("xoffset-in", pos[0] * M2FT * 12);
node->setDoubleValue("yoffset-in", pos[1]); node->setDoubleValue("yoffset-in", pos[1] * M2FT * 12);
node->setDoubleValue("zoffset-in", pos[2]); node->setDoubleValue("zoffset-in", pos[2] * M2FT * 12);
} }
// Are we at ground level? If so, lift the plane up so the gear // Are we at ground level? If so, lift the plane up so the gear