Detlef wrote > > > > On Saturday 01 August 2009 11:20:14 Detlef Faber wrote: > > > And what about Scenery Models with slopes or ramps on it? Currently > > > these cannot have ground properties and planes/cars can easily drive > > > through walls because only horizontal surfaces are considered for > > > collision detection. > > > > There is collision detection code available from the ground cache. > > There is currently just no FDM that makes use of that. > > > > If there is something missing for the collisions, ask me, I have plenty > of > > stuff around here ... > > > Thanks for the offer. I'm experimenting with vehicles and ships and ran > into some problems, especially the above mentioned unability to get > blocked by walls. This prevents a proper mooring manouver for Ships and > Seaplanes, which is a bit sad. > > While trying it with latest CVS it appears that the ground properties > for ocean surfaces doesn't work anymore. The Property browser reports > the ground as solid, which it isn't. Lake surfaces work correct. >
I've just written a new sub-class of AIShip - AIGroundvehicle - in the context of a railway. Works well enough so far. Jon Stockill is testing it right now. We hope to extend it to a bus later. This is not a substitute for a decent ground vehicle fdm - it runs the train down a "flightplan" and back if you want. Just eyecandy. Subject to testing I will get it into cvs perhaps this week. I suppose really there should be a class "vehicle" with subclasses "ship" and "ground", perhaps even subdividing that further. That's the purist approach - meanwhile it's working - until Jon breaks it :-). During this development I discovered that SGGeod::fromGeodM(pos, 10000) now finds everything, not just scenery. So when trying to find the AGL of the train, it was finding itself. The hack was to disable HOT for the model. I don't know if this is the intent for SGGeod::fromGeodM(pos, 10000). Vivian ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel