O'Reilly logo

Learning Game AI Programming with Lua by David Young

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

Manipulating animations

A number of API calls allow you to manipulate the underlying animations backed by Ogre. While Ogre maintains the actual animation state, the sandbox is responsible for manipulating and updating these animation states.

Enabling and disabling animations

The enabling and disabling animations determine whether the animation will contribute to the skeleton's current pose. If multiple animations are enabled, they will combine in an additive manner to determine the skeleton's final pose.

Note

As none of our soldier's animations were authored to be played simultaneously with one another, additional steps are required to blend multiple animations together.

To determine if an animation is already enabled, we can use the Animation.IsEnabled ...

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