IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

LerpClipBlend QML Type

Performs a linear interpolation of two animation clips based on a normalized factor.

This type was introduced in Qt 5.9.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

LerpClipBlend QML Type

  • Import Statement: import Qt3D.Animation 2.4

  • Since:: Qt 5.9

  • Instantiates:: QLerpClipBlend

Detailed Description

LerpClipBlend 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

Property Documentation

 

blendFactor : real

Specifies the blending factor between 0 and 1 to control the blending of two animation clips.

endClip : AbstractClipBlendNode

Holds the sub-tree that should be used as the end clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 1.

startClip : AbstractClipBlendNode

Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 0.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+