Animations are essential for making a good game. Qt 3D provides a separate module for performing animations, but at the time of writing it's still experimental. Luckily, Qt already provides multiple ways to play animations. When using C++ API, you can use the Animation Framework (we learned about it in Chapter 5, Animations in Graphics View). When using QML, you can use the powerful and convenient animation system provided by Qt Quick. We already worked with it a lot in previous chapters, so here we'll see how we can apply our knowledge to Qt 3D.
Qt Quick animations can be applied to almost any property of any QML object (strictly speaking, there are property types it can't handle, but we won't deal with those types here). If you look at the QML files of our project, you'll see that basically everything in our scene is defined by...