LerpClipBlend QML Type
根据归一化因子对两个动画片段执行线性插值。更多
Import Statement: | import Qt3D.Animation 2.9 |
In C++: | QLerpClipBlend |
Status: | Deprecated |
属性
- blendFactor : real
- endClip : AbstractClipBlendNode
- startClip : AbstractClipBlendNode
详细说明
LerpClipBlend 可用于在单个动画片段的基础上创建高级动画效果。例如,在给定一个玩家角色的情况下,可以使用 Lerp 混合技术将行走动画片段与受伤动画片段结合在一起,混合系数越大,玩家受伤的程度就越大。这样,当混合因子 == 0 时,就可以有一个不受伤的行走玩家;当混合因子 == 1 时,就可以有一个完全受伤的玩家;当混合因子 == 0.5 时,就可以有一个部分行走和部分受伤的玩家。
另请参见 BlendedClipAnimator 。
属性文档
blendFactor : real |
指定介于 0 和 1 之间的混合因子,用于控制两个动画片段的混合。
endClip : AbstractClipBlendNode |
持有作为此 lerp 混合节点的结束片段的子树。也就是说,当blendFactor 设置为 1 时,该混合节点返回的片段。
startClip : AbstractClipBlendNode |
持有应作为此 lerp 混合节点起始片段的子树。即blendFactor 设置为 0 时该混合节点返回的片段。
© 2025 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.