Jump to content

How to slow down mesh animation (while it's animating)?


Recommended Posts

Hi guys, took a short hiatus on coding, now i'm back. 

I'm trying to move a cube through a curve.

I built a simple "slow motion" function, where if the user clicks anywhere on the scene, the FPS of the cube's animation is slowed down. On the next click, the FPS returns to normal. (it's a toggling function).

Somehow, it's causing a weird behavior. It's as if the 'slow-motion' cube's movement is entirely different from the regular cube movement.

Take a look: http://www.babylonjs-playground.com/#14EGUT#22 (try clicking a few times, to see what I mean). My goal is to just slow down movement of the cube, and then increase it again back to normal.

Any ideas on whats causing it, and how to fix this? Am I using the wrong functions?

Screen Shot 2016-06-19 at 2.00.27 PM.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...