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:
parent
dcffb9d335
commit
170ed002e2
1 changed files with 3 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue