Hi Viviam, Vivian Meazza schrieb am 18.12.2007 23:41: > I've just a few moments ago added a few lines of code to AIBallistic which > apply an external force (using the same math as above). The rest works as > before. I just need few properties to set the magnitude and vector of the > external force and it will be done, at least for testing. Thank you, very good. Is it possible to pass the forces in the earth fixed coordinates axes base? (in Newton or pof)?
> It's trivial > really, but I'm assuming that the external force applies no rotational force > to the object. I think this could be easily faked. e.g. new_roll = old_roll + cos(old_roll) * force_in_y_direction * a_magic_constant * dt but i f I read the code correctly, yaw and hdg are pointing at the speed direction (slightly filtered)? Therefore we need something like _elevation = atan2(force_in_z_direction,force_in_x_direction) and then your filter to add some inertia? > I haven't a great deal of time available in the run up to > Christmas so no promises on completion. > Same here. I will have very limited access to my computer (family visiting tour). Fortunately my computer is a notebook, but I am not sure if there is any space in the car for my joystick. > Vivian > > Best regards, Maik ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel