1
0
Fork 0

Maik: place the contact points at the rotor blade tips (center+radius), not at center+diameter

This commit is contained in:
andy 2007-05-25 22:58:04 +00:00
parent 96f7bd90de
commit 7986caf75b

View file

@ -965,8 +965,8 @@ void Rotor::compile()
float help[3]; float help[3];
float s = Math::sin(pi*2*_num_ground_contact_pos/i); float s = Math::sin(pi*2*_num_ground_contact_pos/i);
float c = Math::cos(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(c*_diameter*0.5,directions[0],_ground_contact_pos[i]);
Math::mul3(s*_diameter,directions[1],help); Math::mul3(s*_diameter*0.5,directions[1],help);
Math::add3(help,_ground_contact_pos[i],_ground_contact_pos[i]); Math::add3(help,_ground_contact_pos[i],_ground_contact_pos[i]);
Math::add3(_base,_ground_contact_pos[i],_ground_contact_pos[i]); Math::add3(_base,_ground_contact_pos[i],_ground_contact_pos[i]);
} }