QuaternionAnimation QML Type

A PropertyAnimation for quaternions. 更多...

import 語句: import QtQuick3D 1.15
Since: Qt 5.15
繼承:

PropertyAnimation

特性

詳細描述

專用 PropertyAnimation that defines an animation between two quaternions .

By default spherical linear interpolation is used. This can be changed to the faster but less accurate normalized linear interpolation by setting the type 特性。

Instead of specifying quaternions directly in the from and to properties, it is also possible to provide euler angles in degrees in the fromXRotation , toXRotation , fromYRotation , toYRotation , fromZRotation , toZRotation 特性。

注意: Avoid mixing the quaternion and euler angle-based properties. The from and to values are expected to be fully specified either via a quaternion or the three euler angles.

另請參閱 Qt Quick 中的動畫和過渡 , QQuaternion , QQuaternion::slerp() ,和 QQuaternion::nlerp() .

特性文檔編製

from : quaternion

This property holds the starting value for the animation.

fromXRotation : float

This property holds the starting value of the animation for the X axis as an euler angle in degrees.

fromYRotation : float

This property holds the starting value of the animation for the Y axis as an euler angle in degrees.

fromZRotation : float

This property holds the starting value of the animation for the Z axis as an euler angle in degrees.

to : quaternion

This property holds the ending value for the animation.

toXRotation : float

This property holds the ending value of the animation for the X axis as an euler angle in degrees.

toYRotation : float

This property holds the ending value of the animation for the Y axis as an euler angle in degrees.

toZRotation : float

This property holds the ending value of the animation for the Z axis as an euler angle in degrees.

type : enumeration

This property defines the interpolation mode.

常量 描述
QuaternionAnimation.Slerp Spherical linear interpolation.
QuaternionAnimation.Nlerp Normalized linear interpolation.