I want to speed up my simulation and i would like to know which is the code that affects the simulation the same way as
the speed up button does. i've tried setTimeUnit(int) but it doesn't work. Could somebody help me?
By the way, is there any way that the engine continues working without changing his time? I mean, i want the program to
continue working but when i call the method getTime() i want it to be always the same for a period of time. Is it
possible?
Thank you.
Victor Gleim — 12.12.07
to Jorge:
To change the simulation speed, you could use the 'setRealTimeScale' method of the Engine, that is:
getEngine().setRealTimeScale(1) to set the simulation time scale to 1.
The 'getTime' method can return the same time only if the simulation is paused. To pause it, you could use the 'pause'
method of the Engine.
Jorge — 12.12.07
Than you for your fast answer. The setRealTimeScale works perfect. As regard my other question, i need that the engine
does some actions (like showing an editbox) with the time paused until i press a certain key. I've tried to pause the
engine but it does not work properly. is there another way to do it? Thank you
Victor Gleim — 12.12.07
to Jorge:
What kind of problems did you face when tried to pause the Engine?