Matter-js: FPS affects physics!

Created on 2 Jun 2020  路  5Comments  路  Source: liabru/matter-js

Hello. I have simulation (game plinko) - balls falling down from exact coordinates into baskets. Repeating the same simulation over and over, results are different!

Also, when I slow down time the simulation results become very different.

I made this issue, beause I need same results in multiple simulations using same exact fall coordinates.

duplicate

Most helpful comment

There's a PR all about timing inconsistencies. Regardless, you should fix your timestep to achieve determinism.

https://github.com/liabru/matter-js/pull/777

All 5 comments

Indeed, I experience the same effect.

Indeed, I experience the same effect.

And what to do? I need the same results on server and client...

There's a PR all about timing inconsistencies. Regardless, you should fix your timestep to achieve determinism.

https://github.com/liabru/matter-js/pull/777

There's a PR all about timing inconsistencies. Regardless, you should fix your timestep to achieve determinism.

777

help pls, I quoted reply in #777

Pretty much as @wmike1987 says (thanks!)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moe091 picture moe091  路  3Comments

probityrules picture probityrules  路  4Comments

drachehavoc picture drachehavoc  路  4Comments

ShadewEnder picture ShadewEnder  路  3Comments

TimuJiang picture TimuJiang  路  4Comments