Make the vertical acceleration rate scale with vertical performance. The
default case for tankers should still be right about the same as where it was.
This commit is contained in:
parent
2d6f291d4f
commit
fe86900e57
1 changed files with 2 additions and 2 deletions
|
@ -450,12 +450,12 @@ void FGAIAircraft::Run(double dt) {
|
|||
double vs_diff = tgt_vs - vs;
|
||||
if (fabs(vs_diff) > 10.0) {
|
||||
if (vs_diff > 0.0) {
|
||||
vs += 900.0 * dt;
|
||||
vs += (performance->climb_rate / 3.0) * dt;
|
||||
|
||||
if (vs > tgt_vs)
|
||||
vs = tgt_vs;
|
||||
} else {
|
||||
vs -= 400.0 * dt;
|
||||
vs -= (performance->descent_rate / 3.0) * dt;
|
||||
|
||||
if (vs < tgt_vs)
|
||||
vs = tgt_vs;
|
||||
|
|
Loading…
Add table
Reference in a new issue