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

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

7.8k Downloads

AerodynamicForce is roll-dependent with FAR

BenChung opened this issue ยท 0 comments

commented

For cylindrical vehicles, aerodynamic force should not be dependent on roll. However, with FAR (haven't tried with stock), the reported AerodynamicForce depends on the roll of the vehicle. This shows an example, where the green vector is the AerodynamicForce direction while the red vector is the derivative of velocity (note that gravity is hacked in this clip).

I think that this is being caused by the way that the lift vector direction is calculated, using the cross product of the vehicle right vector and the velocity. This is appropriate under most conditions for aircraft, but does not work for cylindrical vehicles.