kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

How to use SimulateAerodynamicForceAt?

jpxthu opened this issue ยท 1 comments

commented

I tried SimulateAerodynamicForceAt in many ways, such as using different references and installing FAR, I could not obtain correct aerodynamic force - compared with vessel.Flight().AerodynamicForce. How to use this function correctly? I want to do something similar to Trajectory.

Sample code I have tried:

var body = vessel.Orbit.Body;
var res = vessel.Flight().SimulateAerodynamicForceAt(
    body,
    new Tuple<double, double, double>(0, 0, 0),
    sc.TransformVelocity(vessel.Position(body.ReferenceFrame), vessel.Velocity(body.ReferenceFrame), body.ReferenceFrame, vessel.ReferenceFrame));
commented

Solved. #587