本页内容

LerpClipBlend QML Type

根据归一化系数对两个动画片段执行线性插值。更多...

Import Statement: import Qt3D.Animation 2.12
In C++: QLerpClipBlend
Status: Technology preview

此类型处于技术预览阶段,可能会有变动。

属性

详细说明

LerpClipBlend 可用于基于单个动画片段创建高级动画效果。例如,对于某个玩家角色,可以利用线性插值(Lerp)混合技术,根据伤势程度随玩家受伤加剧而逐渐增加的混合因子,将行走动画片段与受伤动画片段进行组合。 这样,当混合因子 == 0 时,玩家处于未受伤的行走状态;当混合因子 == 1 时,玩家处于完全受伤的状态;当混合因子 == 0.5 时,玩家处于部分行走且受伤的状态。

另请参阅 BlendedClipAnimator 。

属性文档

blendFactor : real

指定一个介于 0 和 1 之间的混合因子,用于控制两个动画片段之间的混合效果。

endClip : AbstractClipBlendNode

保存应作为此线性插值混合节点结束片段的子树。也就是说,当“blendFactor ”设置为1时,该混合节点返回的片段即为此子树。

startClip : AbstractClipBlendNode

保存应作为此线性插值混合节点起始片段的子树。也就是说,当“起始片段”(blendFactor )设置为 0 时,该混合节点返回的片段即为此子树。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.