Answers is deprecated.

Please use Forum to participate in community by asking and answering questions!

Hello everyone,

I am trying to set the time of an animation that is currently paused, but this doesn't get updated. When animation speed is zero, it doesn't matter what value I set to "currentTime", the model does not animate. But once it is playing, it's time goes to wherever I want.

I really need to set the animation time when the animation is not playing. I am using it like "states" of the object. When the user clicks in a button for example, the animation needs to play from where it is paused.

To make it clearer, my animation is set like this:

  • Idle: 1s - 3s
  • Shake1: 4s - 5s
  • Shake2: 6s - 7s

(I know I could separate the animation to different files, but it could slow down the workflow a lot once I have more than 30 "sub animations" inside it)

Thank you :)

asked 12 Nov '15, 19:29

adilsonxds's gravatar image

adilsonxds
10224
accept rate: 0%


I have deployed a fix that now allows you to set currentTime even if the animation speed is set to zero.

link

answered 13 Nov '15, 20:20

will's gravatar image

will ♦♦
5.7k11224
accept rate: 46%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37
×36
×1
×1

Asked: 12 Nov '15, 19:29

Seen: 986 times

Last updated: 12 Jan, 01:22

about | privacy | support | contact

playcanvas