Changed animation method to match with Yna Engine implementation.