I'm trying to implement a hovercraft using the JigLibX physics engine, and I've tried to use the Car and wheel class as references but I'm still a bit uncertain about how the wheels work. I think I want to use similar methods as the wheel to keep my vehicle hovering off the ground but I'm not understanding how that's being done in the AddForcesToCar method in the Wheel class.
First of all, what are all the attributes in the collSystem.SegmentIntersection()? I think I understand the skinOut, posOut, normalOut, and seg, but not quite sure about fracOut and the collisionPredicate. Also, for the seg, what's delta? It's that just the end point in world space? It looks like it's position relative from the origin, but I'm not quite sure.
Now, making use of SegmentIntersection, would I want to shoot a ray from my vehicle and the posOut will be where I'm applying my up force to keep it off the ground? Not quite sure how I should make use of the method to get what I want.
Any feedbacks will be appreciated.