]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Model.cpp
When we are asked to produce no force on a Surface (e.g. a weight that
[flightgear.git] / src / FDM / YASim / Model.cpp
index 643b88fe18ac660147deb0bae7994171d56c917c..ece48823db53c3f4a6be4eb09d45d0963f4c77cd 100644 (file)
@@ -480,9 +480,10 @@ void Model::calcForces(State* s)
     if(_launchbar) {
        float v[3], rot[3], glvel[3], ground[3];
         _launchbar->calcForce(_ground_cb, &_body, s, lv, lrot);
-       float force[3], contact[3];
-        _launchbar->getForce(force, contact);
-        _body.addForce(contact, force);
+       float forcelb[3], contactlb[3], forcehb[3], contacthb[3];
+        _launchbar->getForce(forcelb, contactlb, forcehb, contacthb);
+        _body.addForce(contactlb, forcelb);
+        _body.addForce(contacthb, forcehb);
     }
 }