Coming from an aircraft builder who understands the phyiscis of flight, I am now confused on how to make a submarine work. Particuarly a flying one.
I understand that the llSetVehicleFlags(VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT) is required to make a submarine however here's the problem I see.
The water level for each sim varies on a simwide scale. So one sim may have the base water level set at 20m while another has it set to 40m. This wouldn't work well if I had a fixed variable for the hover height. What would I need to do to allow for if the vehicle collides with the water, it changes modes?
I know the vehcile tutorial covers both on how to make a simple airplane or boat but it doesn't cover something as complex as a sub nor can I find any solid connection between both scripts without the flags and variables conflicting with each other.