Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Marble rotations are identical on load #251

Open Zemanzo opened 5 years ago

Zemanzo commented 5 years ago

Expected behavior Marble rotations are varying as they have all rolled in a different manner.

Actual behavior All marbles have the same rotation (they aren't rotated from their default rotation at all) which results in an unnatural look.

Reproduction steps

  1. Add marbles to the race, without starting it.
  2. Let them settle until they are no longer moving.
  3. Reload the page.
  4. All marbles will have the same rotation.

Additional context Can simply be solved by applying a random rotation. There's no need for it to be accurate with the physics simulation.