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

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.