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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
b2WorldDef
there are parameterscontactHertz
,contactDampingRatio
,jointHertz
, andjointDampingRatio
. It seems the samples use a step size of 1/60, in which case the default value forcontactHertz
is half the tick rate (30hz) andjointHertz
is equal to the tick rate (60hz). Is it a good idea to maintain these ratios when changing the tick rate? And shouldcontactDampingRatio
andjointDampingRatio
also be tuned to account for the tick rate in some way? It's hard for me to understand what those two parameters are controlling.Beta Was this translation helpful? Give feedback.
All reactions