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:
parent
bd917a47d8
commit
2b57eb167a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue