Fix Quaternion Tween and add Easing baker to AnimationTrackEditor #64678
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Desktop.2022.08.21.-.10.56.00.01.mp4
To improve editing of non-Bezier track animations, add the feature of baking Easing by Tween to the AnimationTrackEditor.
Especially, the ValueTrack has EasingCurve, but the TRS3D track does not have EasingCurve. Is this due to performance reasons or compression tracks @reduz? Well, it is possible to use tween interpolation as an alternative feature from EasingCurve.
The main use case for this feature is to easily add animation to simple skeleton models such as weapons or GUI objects or something. For smoothing in character animation, Cubic interpolation improved with #63380 and #63602 is more appropriate.
In addition, Quaternion tween was completely broken, so this PR fixed it with using slerp internally. Also,
Quaternion::exp()
checking algorithm had a problem, which has been fixed.