Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi I'm trying to get the time in milliseconds of my scene by using getStartTime(). This is what I tried:
console.log is used to print the time in the console (like in Firebug). My problem is that it prints "0" for every frame. I was expecting to see the elapsed time in milliseconds since the start of the scene. Please explain it to me. An example of how to use getStartTime() would be great. Thanks! |
||||
|
(Sorry for the late answer) I think the start time usually gets only set once, and never changes afterwards anymore. The first time doAnimate() of the scene is called, the Start time gets set to CL3D.CLTimer.getTime(), in order for objects to animated according to the first time the scene was shown on the display. Maybe somehow doAnimate does not get called for your scene somehow? |
|