Speed Ratio not Setting

I created a model with animation in Blender and save it out as a glb. It imports into Babylon just fine. The animation plays as expected. The problem is the Speed Ratio. I can’t set the speed ratio as a parameter of the animation.start function.

sambaAnim.start(true, 0.5, sambaAnim.from, sambaAnim.to, false);

I used the Babylon Playground from Diving Deeper>Animation>Animating Characters as a template. The only change is my model located on github and the scaling has been commented out. Otherwise, it is the same.

What is strange is that I can control the Speed Ratio with code on the Babylon one, but not with my model. I can change the Speed Ratio using the Inspector for either. What am I missing here?

Thank you for your insights.

1 Like

We made a typo with kickBack (lowercase k)

The fix: Speed Ratio Test | Babylon.js Playground (babylonjs.com)

Have a good week end :slight_smile:

That was a stupid mistake on my part. I had to change some file names before I shared them here in the forum. Sorry for that.

Even if I fix that typo, I still have the same problem. I have no idea why yours works. I added a console log to send out the animation to make sure I have it and I still can’t change the Speed Ratio value with code.

I added stop() before calling play() :slight_smile:

I totally missed that. I really need to pay better attention.

Thank you very much.

1 Like