plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

Kaiii3 avatar image
Kaiii3 asked Kaiii3 edited

SimConnect injected Boat underwater

Hey,

injecting Boats via SimConnect at the Great Lakes causing them to spawn below water, while Airplanes spawn fine on the water.

1652275958044.png

From the GAIST freeware pack we know that this issue is the same for BGL based boats as well.

Here the C# code:

SIMCONNECT_DATA_INITPOSITION Init;
Init.Altitude = 0;
Init.Latitude = 41 + 53.397/60;
Init.Longitude = -87 - 34.045/60;
Init.Pitch = 0.0;
Init.Bank = 0.0;
Init.Heading = 54;
Init.OnGround = 1;
Init.Airspeed = 0;
simconnect.AICreateSimulatedObject("CruiseShip02", Init, DATA_REQUESTS.REQUEST_NEW_SIMOBJECT_SHIP);


Init.Altitude = 0;
Init.Latitude = 41 + 53.500 / 60;
Init.Longitude = -87 - 34.045 / 60;
Init.Pitch = 0.0;
Init.Bank = 0.0;
Init.Heading = 54;
Init.OnGround = 1;
Init.Airspeed = 0;
simconnect.AICreateSimulatedObject("Cessna Skyhawk G1000 Floaters Asobo", Init, DATA_REQUESTS.REQUEST_NEW_SIMOBJECT_SHIP);

simconnect
1652275958044.png (4.5 MiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.