On Wed, 2002-04-03 at 20:59, Michael Selig wrote:
> At 4/2/02, you wrote:
> >On 02 Apr 2002 15:45:18 -0500
> >  Sam Varner <[EMAIL PROTECTED]> wrote:
> >>I'm working on an automotive simulator, http://vamos.sourceforge.net  A
> >>while ago, Curt suggested that I try to make my car model work with
> >>FlightGear.
> >
> >!!
> >
> >>I'd like to start working on that now, but I don't know
> >>where to begin.  Could somebody give me some tips on adding a vehicle
> >>model to FlightGear?  Thanks.
> >
> >You might start by looking at the ground dynamics / landing gear modeling 
> >code in the various FDMs (flight dynamics model). In JSBSim this would be 
> >FGGroundReactions.[cpp|h] and FGLGear.[cpp|h]. You should look at YASim 
> >and LaRCSim code, as well, to get the widest exposure to how ground 
> >reactions are modeled.
> >
> >Off the top of my head, after first being a bit clueless on where to 
> >start, I'd suggest that you ought to be able to get pretty far pretty fast 
> >in JSBSim by merely specifying in a config file an "aircraft" that had 
> >very poor aerodynamics ;-)  Theoretically, this shouldn't be too hard to 
> >get a start with. The same is probably true with YASim, I'm sure Andy will 
> >direct you how to do this with YASim.
> 
> 
> I tried this as well.  I ended up w/ something that "simulated" driving on 
> a frozen lake bed --- a skating rink.  But without too much more trouble, 
> it could work.  I think the challenging part is going to be modeling the 
> suspension system.  FWIW: I know that in motorsports people are using ADAMS 
> to model the system dynamics.  This is a commercial product.

I already have a pretty complete car model with suspension, engine,
transmission, tires and all that good stuff.  I was hoping to figure out
how to make this model run in FlightGear-land.  My biggest questions
are:

1) How do I add a model to FlightGear?  Do I need to derive from a
specific class?  How do I register the vehicle with the program?  What
sort of initialization do I have to do?

2) How do I interact with the environment?  How are collisions detected
and how are vehicles notified?  How is information about surfaces
(grass, concrete, etc.) passed?

If anyone has info, docs, or examples that might help me out, please let
me know.  Thanks.

Sam 



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to