Hi thanks for such a great and detailed answer. But it seems to me that he is not working. The curve affects the key frames, no matter how far they are from each other, the animation runs for 1 or 5 seconds, it doesn’t matter, the speed value will always be the same,
but if you use the duration of the animation in the formula, it is a variable that begins to change, which will give different results depending on the duration of the animation, which cannot be.
This can be seen from the example below, speed does not change depending on how long the animation takes
Example:
// 1 seconds
{
"type": 6413,
"keys": [{
"keyIndex": 1,
"time": 0,
"value": [142.641514355451, 142.641511325694, 0],
"inInfluence": [{
"influence": 56,
"speed": 0
}],
"outInfluence": [{
"influence": 11,
"speed": 2346.42913342616
}],
"inInterpolation": 6613,
"outInterpolation": 6613
}, {
"keyIndex": 2,
"time": 1,
"value": [1777.35849433592, 937.358491306162, 0],
"inInfluence": [{
"influence": 56,
"speed": 597.229950459575
}],
"outInfluence": [{
"influence": 16.666666667,
"speed": 0
}],
"inInterpolation": 6613,
"outInterpolation": 6613
}]
}
// 5 seconds
{
"type": 6413,
"keys": [{
"keyIndex": 1,
"time": 0,
"value": [142.641514355451, 142.641511325694, 0],
"inInfluence": [{
"influence": 56,
"speed": 0
}],
"outInfluence": [{
"influence": 11,
"speed": 2346.42913342616
}],
"inInterpolation": 6613,
"outInterpolation": 6613
}, {
"keyIndex": 2,
"time": 5,
"value": [1777.35849433592, 937.358491306162, 0],
"inInfluence": [{
"influence": 56,
"speed": 597.229950459575
}],
"outInfluence": [{
"influence": 11,
"speed": 0
}],
"inInterpolation": 6613,
"outInterpolation": 6613
}]
}