QLerpClipBlend Class
class Qt3DAnimation::QLerpClipBlendPerforms a linear interpolation of two animation clips based on a normalized factor. More...
Header: | #include <QLerpClipBlend> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
Instantiated By: | LerpClipBlend |
Inherits: | Qt3DAnimation::QAbstractClipBlendNode |
This class was introduced in Qt 5.9.
Detailed Description
QLerpClipBlend can be useful to create advanced animation effects based on individual animation clips. For instance, given a player character, lerp blending could be used to combine a walking animation clip with an injured animation clip based on a blend factor that increases the more the player gets injured. This would then allow with blend factor == 0 to have a non injured walking player, with blend factor == 1 a fully injured player, with blend factor == 0.5 a partially walking and injured player.
See also QBlendedClipAnimator.