Simulated Animation Effects Week#6

tldr:
Last week I’ve added handling for some animation effects when they are playing in parallel with simulated animation effects, namely:

  • Appear/Disappear
  • Spin

Please accept YouTube cookies to play this video. By accepting you will be accessing content from YouTube, a service provided by an external third party.

YouTube privacy policy

If you accept this notice, your choice will be saved and the page will refresh.

spin + path animation combine without a problem.

After adding support for path motion animation effects last week, this week I kept adding support for remaining animation effects. I’ve started with visibility (appear/disappear) animation effects. First done some work on GenericAnimation class so that it has access to box2DWorld and the attribute name that the animation modifies. Attribute name is used to classify what kind of update will be queued for box2DWorld.


After getting visibility animation effects in a working state, started working on rotation animation effects since they also use GenericAnimation class. To make rotation animation effects work, I’ve made an implementation that calculates angular velocity needed to rotate the shape to desired angle similar to how I’ve implemented linear velocity for path motion animations last week.

check out the source code on gsoc-box2d-experimental branch

Wasn’t able to progress much this week since my finals are still going on, hopefully i will get up to speed soon since this is the last week of them.