QuaternionAnimation QML Type
Ein „ PropertyAnimation “ für Quaternionen. Mehr...
| Import Statement: | import Qt3D.Core 2.12 |
| Inherits: | |
| Status: | Deprecated |
Dieser Typ ist veraltet. Wir raten dringend davon ab, ihn in neuem Code zu verwenden.
Ausführliche Beschreibung
Ein spezialisierter „ PropertyAnimation “, der eine Animation zwischen zwei „ quaternions “ definiert.
Standardmäßig wird die sphärische lineare Interpolation verwendet. Dies kann durch Setzen der Eigenschaft „ type “ auf die schnellere, aber weniger genaue normalisierte lineare Interpolation umgestellt werden.
Anstatt Quaternionen direkt in den Eigenschaften „ from “ und „ to “ anzugeben, ist es auch möglich, Eulerwinkel in Grad in den Eigenschaften „ fromXRotation “, „ toXRotation “, „ fromYRotation “, „ toYRotation “, „ fromZRotation “ und „ toZRotation “ anzugeben.
Hinweis: Vermeiden Sie es, Eigenschaften auf Quaternion-Basis und auf Euler-Winkel-Basis zu mischen. Die Werte „from“ und „to“ sollten entweder vollständig über ein Quaternion oder über die drei Euler-Winkel angegeben werden.
Siehe auch „Animation und Übergänge“ unter Qt Quick, QQuaternion, QQuaternion::slerp() und QQuaternion::nlerp().
© 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.