DannyChapman wrote:cvieira wrote:the problem is how and what forces and magnitude to apply to the flight dynamic model in the case of collision.
Surely when you write "problem" you mean "fun"?!
Hi, i think i really meant "fun"
Thanks make available the source of your project! I hope to learn some more about flight dynamics with your approach.
In fact i have made some progress using jsbsim during the week and it's quite nice. I have a plane flying using the flight dynamics provided by jsbsim. The problem is that it just handles the collision with ground. With some work it's possible to model a more complex terrain, and now the "height" of the terrain right beneath the plane (ground altitude). But in my game i will need to put objects in the scene. And if the plane collide with them i want to see the plane acting like it's hitting something of course. That's why i want to use bullet to the physics part. But, in case of a collision, i need to pass the acting forces to fbsim FDM, so that the plane takes a different behavior that affects it's flight.
For example, imagine a wall. If hit the wall (collision detected by bullet), i need to inform fbsim, by applying some forces to the plane (in certain x, y, z), so that fbsim can calculates forces and moments accordingly, so that the rendered plane can be correctly aligned in the world (FDM - Bullet world - Rendering).
I guess i have to explore a little better jsbsim so that i can achieve such integration. If i can't handle it perfectly i have to move to other solution
You seem to know jsbsim, so if you have some clue about this, it would be good if you can share it
Many thanks again! Regards,