Project Zorb Lua Script Vessel

I pushed a prototype branch if someone wants to play with it. I did not have time to really test this yet, I'll join binaries if anyone's interested.
From Lua: vi:get_groundcontactpenetration(idx), with idx the touchdown point number. It returns a number (double), negative if the point is under the surface.
This will be slow if you have a large number of points to check.
I presume it should be accessed in the clbk_poststep so the physics has been run.
I would love to play with this but I'm not sure how to compile this.
 
I'll try to package the required binaries but since it modifies the core it's not that straightforward
I understand. I have a lot of irons in the fire at the moment so I probably couldn't do anything with it for several weeks anyway, so take it at your own speed. Thanks for looking at it.
 
It occurs to me that, at least for the application of making buoyant vessels, knowing the vessel altitude, pitch and roll angles, and the contact points in vessel coordinates is sufficient to determine the depths of those vertices, at least on flat surfaces like large bodies of water. If this is already generated within Orbiter that obviously would be preferred to minimize the computational expense, but the information is already accessible with some math on the user's end. I'll take a harder look at my cube model and see if I can develop something that works with 8 points to learn what horrors may exist that I haven't considered yet.
 
Back
Top