On Friday 30 April 2004 21:52, Curtis L. Olson wrote:
> Norman Vine wrote:
> >Melchior FRANZ writes:
> >>* Al West -- Friday 30 April 2004 20:05:
> >>>Is collision detection part of the model/dynamics set per aircraft? Just
> >>> I've been flying through the buildings in San Fran all afternoon in the
> >>> bo105.

I'd just like to add that it wasn't my intention to fly into buildings all 
afternoon - just I saw trying to land *on* buildings as a good next step from 
being able to pull into a hover.

> >>
> >>Contact points are per model, but the behavior is AFAIK the same for all
> >>models: you can fly through walls, but not through roofs (neither up nor
> >>down). I've no idea if this was intended. :-)
> >
> >FlightGear does not do collision detection.
> >FlightGear does Height Above Terrain determination.
>
> Right, and also notice that FG samples current terrain elevation once
> each frame.  So when you are one frame short of flying into an object,
> you still get the normal ground elevation.  Now the next frame you are
> inside the object.  FG looks for a highest terrain intersection point
> that is below your current elevation.
>

Forgive my ignorance...  but I think I might be volunteering here.  If the 
path of any contact point over those two frames positions intersects a 
polgyon then we have a collison yes?

Or per frame, if a contact point is on the opposite side of a polygon to any 
other contact point.   

Though at high velocities there is the case where you can pass through an 
object without being detected.

Personally I'm looking for things to do with the other processor on my box.  
And this seems a likely candidate.  Perhaps I should spend some time actually 
looking at some code.

> Because it samples only once per frame, it will almost never see the
> wall.  And as Norman and other's have pointed out, this logic allows us
> to taxi into hangers, fly under bridges, even taxi along the lower level
> of the bay bridge.
>

Although it does - in addition it allows you to taxi through hanger walls, 
bridge struts etc.

> Besides, flying into buildings isn't exactly top form these days.
>

Al is just part of my name, not part of the group I belong to ! ;-)

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

Reply via email to