fs1

AutoUpdated Ground Friction Libs for P3D

Recommended Posts

We have compiled out from the SimInSDK, a ground friction static library for P3D v4 (These are the VS2017 builds, for earlier builds - VS2015/2013 just PM me)

The code auto-updates itself, so no need for recompilation of this lib for future P3D upgrades !

To use is it really simple:

1) Include the header in your VS project and then 2) link the lib (just pick up the one you need, MD / MDd / MTd / MDd)
 

#include "GroundFriction.h"

#pragma comment(lib, "GroundFrictionMDd.lib")

To use it do:
 

GroundFriction *pGF = new GroundFriction();

double friction = 1.3;

pGF->SetGroundFrictionValue(WHEEL_CONCRETE_ROLLING_FRICTION, friction);

//Then to read it back

pGF->GetGroundFrictionValue(WHEEL_CONCRETE_ROLLING_FRICTION, &friction);

You can download it here

Let me know if you like it.

Thanks

Edited by fs1

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now