Jump to content

[SOLVED] Cannot reset animation back to its first frame..


photo

Recommended Posts

Posted

Once I play an animation for the second time, I cannot reset and start playing it from the beginning.

 

I have tried all of these below:

 

mesh.setFrame(-1);

mesh.setFrame(0.0f, 0, 0);

mesh.clearFrame();

mesh.getFrame();

 

But nothing restart my animation back to its first frame...

 

Am I missing something?

Posted

The only thing that worked was setTime(). But it said that I should only use it for, editor or something...

Posted

Hi!

 

Sorry for late reply. It is totally ok to use setTime for rewindind purposes yet you will have old transformations for your bones. setFrame + setTime should do the trick.

×
×
  • Create New...