Physics Engine Behaviour bug

The Babylon official Playground Physics V2 Helpers | Babylon.js Playground shows the bug I was asking to check in question formulated somedays ago. The mentioned playground, using Edge for windows, when loaded from start or reloaded (not the scene restarted), act like the cubes are all moved suddenly by a force or an impule, but if you reset the scene you will see that is not the case, then why is it? In my case, the temporary work around was to set the bodies type of motion to STATIC and later change the to DYNAMIC. Can someone may explain what to do to avoid the situation?, without the workaround?

However, how come that after restarting the scene, the effect is avoided?

Persistent datas that do not need to be initialized again.

I understand what you suggest. However, how come that after restarting the scene, the effect is avoided? Isn’t it a bug? Are you planning to check?

EDIT: Not even a comment about it?

So, no solution?

This is not a bug. This is an effect of cache that can be mitigated with solutions provided earlier. If this solution doesn’t fix your problem, provide a PR. I’ll be glad to review it.

EDIT: I don’t see my post that I posted a few days ago.

Anyway, It listed a few options like this 1:

Or use a fixed time step. Ot the solution to swith to dynamic bodies when scene is ready.

Basically, anything to not have the duration time spike at the frame update time.

The PR with the bug explained is in your PG Physics V2 Helpers | Babylon.js Playground. It’s a bug beacuse it repeat itself when loaded or reloaded (F5), but the behaviour does not happen if you reset the scene.

I did the smallest and easiest proposed fix in this PG : https://playground.babylonjs.com/#E5URLZ#48

The only difference between the 2 PR is the HAVOC parameter set to false (constructor BABYLON.HavokPlugin(_useDeltaForWorldStep?: boolean, hpInjection?: any, parameters?: BABYLON.HavokPluginParameters): BABYLON.HavokPlugin). However I’m using the UMD version of the plugin, and my problem persist. Is there any difference in behaviour between the UMD version and the regular version of the Havok plugin?

No difference. It should behave exactly the same.