Reading sea wave level and direction

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Locked
dadang
Posts: 1
Joined: Thu Jun 28, 2018 7:12 am

Reading sea wave level and direction

Post by dadang »

Hi,

We would like to use P3D for ship simulation.
Is there any method to get information regarding the sea wave level and direction (x, y, z direction) around a ship?

Thanks, and Regards
Dadang
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: Reading sea wave level and direction

Post by Clifton Crane »

Hello,

The PDK offers a few ways of retrieving surface information for both land and water. The IBaseObject interface offers the GetSurfaceInformation function which will give you elevation and normal information. There is also the ISurfaceQueryManagerV400 PDK service that allows you to query surface information at a given world location rather than relative to an entity.
Clifton Crane
Prepar3D® Software Engineer Sr.
Locked