]> git.mxchange.org Git - flightgear.git/commitdiff
Maik: place the contact points at the rotor blade tips (center+radius), not at center...
authorandy <andy>
Fri, 25 May 2007 22:58:04 +0000 (22:58 +0000)
committerandy <andy>
Fri, 25 May 2007 22:58:04 +0000 (22:58 +0000)
src/FDM/YASim/Rotor.cpp

index 486f43ce1e769edf100bef248dc1d15aaeaba951..717cbb110c7c69fa2ee8268fb72984e05ef8d6b6 100644 (file)
@@ -965,8 +965,8 @@ void Rotor::compile()
         float help[3];
         float s = Math::sin(pi*2*_num_ground_contact_pos/i);
         float c = Math::cos(pi*2*_num_ground_contact_pos/i);
-        Math::mul3(c*_diameter,directions[0],_ground_contact_pos[i]);
-        Math::mul3(s*_diameter,directions[1],help);
+        Math::mul3(c*_diameter*0.5,directions[0],_ground_contact_pos[i]);
+        Math::mul3(s*_diameter*0.5,directions[1],help);
         Math::add3(help,_ground_contact_pos[i],_ground_contact_pos[i]);
         Math::add3(_base,_ground_contact_pos[i],_ground_contact_pos[i]);
     }