stepsize of ODE

Started by
5 comments, last by browny 19 years, 11 months ago
Could anyone please tell me what "stepsize" in dWorldStep of ODE actually means. Is it simply time step ? or something else... I made a demo using ODE and in the dWorldStep if i use the frameTime as stepsize, the simulation runs awefully slow, almost as if itz running in super slow mo :S. But the mass, the forces and the overall system configuration is such that it should not be running that slowly in real life. I used -9.81 as gravitational acceleration and etc. How do i make ODE simulation FPS independent and at the same time making movement speed realistic ?
Z
Advertisement
It''s the time interval (in time units) between successive calls to dWorldStep. In ODE, if 1 unit of length=1 metre and 1 unit of mass=1 kilogram, then 1 unit of time=1 second.

You''ll want it to be small - about 0.01 or smaller for decent accuracy.
[teamonkey] [blog] [tinyminions]
I can''t really contribute, I just had a question to ask.

I thought that ODE stood for Ordinary Differential Equations, and was math terminology. Now it seems like it''s some physics engine that I have not heard of. What is it?!

Why don't alcoholics make good calculus teachers?Because they don't know their limits!Oh come on, Newton wasn't THAT smart...
ODE=Open Dynamics Engine
oh, heh, thanks
Why don't alcoholics make good calculus teachers?Because they don't know their limits!Oh come on, Newton wasn't THAT smart...
Then why on earh would my demo run differently ( with different speed) on different machines.. :S. Am calculating the frame time in seconds.. and everything is in standard units ( meter, kg, sec ). Plus, i got one more confusion.. if the ''stepsize'' of dWorldStep was really time then putting in a 0 should practically pause the simulation right ? BUT THAT doesn''t happen rather the system becomes toooootally unstable and BODY position becomes infintity... as if something was divided by 0 !!!
Z
browny:

if you want to pause the simulation dont call worldstep...I''m not sure why passing a 0.0 wouldn''t pause it, but it seems like if you really want to pause the simulatioin you shouldnt call worlkd step at all...this is more efficient anyways


neko
nekoflux

This topic is closed to new replies.

Advertisement