StepHandler Parameters

Phobius

01-08-2008 12:14:10

Greetings,
I am having a little bit of a hard time understanding the meaning of the various parameters of the step-handler. First up, I'll state what I think the step-time is and if I'm wrong, please correct me. The step time is the number of iterations ODE will perform when it gets its turn to crunch some numbers (an update() call or something from OgreODE). The more times it iterates (or to rephrase, the smaller the iteration), the more precise the simulation is.

Now, OgreODE also presents some additional arguments in its stepHandler. stepSize I'm assuming is the same as the step-time; again, please correct me if this is not so. I haven't the foggiest what maxInterval is all about. The timeScale variable looks like some sort of scale at which the stepSize is weighed with. Kind of like some ratio. What it does I do not know.

Any clarification on these would be appreciated.
Thanks.

cloud9

09-08-2008 10:44:56

I think timeScale is just a multiplier for a frame listeners event time i.e. if you set it to 2.0 things would run twice as fast.

maxInterval I think is only doing something on certain types of StepHandler
where the size of the world steps may not be constant it defines a limit on how big a step can be.

I have frameRate rather than stepSize and I think your right about that. Oops my bad I have them both, I guess a frame event could step the world a number of times?