QuaternionAnimation QML Type

A PropertyAnimation for quaternions. More...

Import Statement: import Qt3D.Core 2.12
Since: Qt 5.6
Inherits:

PropertyAnimation

Detailed Description

A specialized 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 property.

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 properties.

Note: 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.

See also Animation and Transitions in Qt Quick, QQuaternion, QQuaternion::slerp(), and QQuaternion::nlerp().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qml-qt3d-core-quaternionanimation.html