I did some searching around regarding AnimationCurve's, and found some good things. However, what I did not find, was anywhere that explains the easiest way to come from the keys in the cfg file
someModule
{
someAnimationCurve
{
key = 0 320
key = 1 280
key = 6 0.001
}
}
reading that in C# (plugin) into an AnimationCurve object
FloatCurve curve = new FloatCurve();
curve.add(0,320);
curve.add(1,280)
curve.add(6,0.001);
So what is the most efficient way to populate AnimationCurve from the cfg file format we know in KSP?
other related question reference:
for answer see
and