QuaternionAnimation QML Type
Un tipo ` PropertyAnimation ` per i quaternioni. Altro...
| Import Statement: | import Qt3D.Core 2.12 |
| Inherits: | |
| Status: | Deprecated |
Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Descrizione dettagliata
Un tipo " PropertyAnimation " specializzato che definisce un'animazione tra due " quaternions".
Per impostazione predefinita viene utilizzata l'interpolazione lineare sferica. È possibile passare all'interpolazione lineare normalizzata, più veloce ma meno accurata, impostando la proprietà ` type `.
Invece di specificare direttamente i quaternioni nelle proprietà ` from ` e ` to `, è anche possibile fornire angoli di Eulero in gradi nelle proprietà ` fromXRotation`, ` toXRotation`, ` fromYRotation`, ` toYRotation`, ` fromZRotation` e ` toZRotation `.
Nota: evitare di combinare proprietà basate sui quaternioni e sugli angoli di Eulero. I valori “from” e “to” devono essere specificati integralmente tramite un quaternione o i tre angoli di Eulero.
Vedi anche Animazione e transizioni in Qt Quick, QQuaternion, QQuaternion::slerp() e 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.