animChannel.setSpeed(speed) - Cannt speed up Animation

animChannel.setSpeed(speed)



Here its not possible to increase the animation speed.



Can it be taken as a feature request, to be able, to increase the animation speed?

1 Like

mhhh setSpeed(2.0f) for example should double the speed of the animation.

You mean this is not working?

1 Like

it should set ‘given’ speed for all the animations of that channel, right?


You mean this is not working?

yeh, it seems that way.
1 Like

So, should I file it as an Issue in the issue tracker?

1 Like

yes you can, i did not have time to look into it, but if i can’t reproduce it, i might ask you for a test case

1 Like

Sent.

1 Like

Hey, I found a word around of this animation speed issue.



Then problem was not with animChannel.setSpeed(speed). It actually increases animation speed as you mentioned earlier. The problem is when you blend in another animation with this.



[java]channel.setAnim("stand", 0.50f);[/java]



If i use this line speed goes back to default, i think it is 1.



So, the word around is simple, set the animation speed again after blending another animation.



This has pros and cons. First, now i have better control of the animation speed. I can set the speed whenever and whatever I want. On, the other side, this is making my code messy.



It this ok with this method?

1 Like

it’s ok yes, but the blending should not reset the speed, so i guess that’s a bug.



It’s cool you have workaround though ;), thanks for narrowing this down.

1 Like

Alright, in the setAnim method, the speed is explicitly set to 1 at the end.

I’ll have to discuss that with Kirill, because maybe it’s done on purpose.



I’ll keep you informed

1 Like

yeh, i was thinking about it too. Cause, I used this bug(!) for an advantage. For a particular animation i need to speed down the playback

speed, and I couldn’t have dont it without this feature.

1 Like

So after a discussion with Kirill, this is an intended feature, so in fact your workaround is not a workaround, it’s the way to go :stuck_out_tongue:

I’ll just state clearly in the javadoc that this methods sets the speed to 1.

1 Like