How to best tune world simulation parameters #871
Unanswered
notnullnotvoid
asked this question in
Q&A
Replies: 1 comment
|
Normally you should not need to tune these values. I suspect you are concerned about resolution speed for a character mover. I plan to work on character movement features for 3.1. Nevertheless, you should probably not increase the contact or joint hertz much because this can lead to jitter. Consider reducing the contact damping ratio from the default of 10 to increase contact resolution speed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In
b2WorldDefthere are parameterscontactHertz,contactDampingRatio,jointHertz, andjointDampingRatio. It seems the samples use a step size of 1/60, in which case the default value forcontactHertzis half the tick rate (30hz) andjointHertzis equal to the tick rate (60hz). Is it a good idea to maintain these ratios when changing the tick rate? And shouldcontactDampingRatioandjointDampingRatioalso be tuned to account for the tick rate in some way? It's hard for me to understand what those two parameters are controlling.All reactions