O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing animations

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required