stepsize and stability

kees
Posts: 3
Joined: Wed Mar 19, 2008 7:46 pm

stepsize and stability

Post by kees »

I'm dumping a large number of boxes into a container. They never come to a full rest
but keep jiggling a bit. I tried reducing the jiggling by reducing the stepsize of
the integrator to 1/600 but this makes it so much worse that the boxes start
jumping in the air.

I expected stability (and accuracy) would improve when reducing the timestep, what am I missing?

Kees
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: stepsize and stability

Post by Erwin Coumans »

You should use a stepsize around 60 hertz.

Currently, the constraint correction adds velocity, and this can cause problems with very small timesteps. You can adjust parameters to reduce the problem. We will look into using position based error correction, to avoid this issue.

Jitter/instability can have many reasons. What are the object sizes? Too small or too large can cause issues. Please check the user manual for more tips.

Hope this helps,
Erwin
kees
Posts: 3
Joined: Wed Mar 19, 2008 7:46 pm

Re: stepsize and stability

Post by kees »

Objects are typically 2*.3*.01 (I can't change the aspect ratio's). Which parameters should I play with to reduce the jiggling if not the stepsize? I tried the damping pars which don't seem
to help. Reducing the collision margin seems to help somewhat.

Thanks,
Kees