1
0
Fork 0

From Vivian: change default up/down angles on the Launchbar from 30 to

45 degrees and add a "holdback-length" attribute.
This commit is contained in:
andy 2006-03-02 16:49:25 +00:00
parent dcffb9d335
commit 170ed002e2

View file

@ -287,8 +287,9 @@ void FGFDM::startElement(const char* name, const XMLAttributes &atts)
l->setHoldbackMount(v); l->setHoldbackMount(v);
float length = attrf(a, "length", 1.0); float length = attrf(a, "length", 1.0);
l->setLength(length); l->setLength(length);
l->setDownAngle(attrf(a, "down-angle", 30) * DEG2RAD); l->setDownAngle(attrf(a, "down-angle", 45) * DEG2RAD);
l->setUpAngle(attrf(a, "up-angle", -30) * DEG2RAD); l->setUpAngle(attrf(a, "up-angle", -45) * DEG2RAD);
l->setHoldbackLength(attrf(a, "holdback-length", 2.0));
_airplane.addLaunchbar(l); _airplane.addLaunchbar(l);
} else if(eq(name, "fuselage")) { } else if(eq(name, "fuselage")) {
float b[3]; float b[3];