matrix-org / thirdroom

Open, decentralised, immersive worlds built on Matrix
https://thirdroom.io
Apache License 2.0
606 stars 65 forks source link

Objects falling through floor when scripts reload #613

Open robertlong opened 1 year ago

robertlong commented 1 year ago

Script loading is stalling the GameThread and physics objects are falling through the floor. Need to switch to fixed physics pipeline? Or pause physics system while loading is happening?

Repro:

  1. spawn physics object via script
  2. reload scene via script editor
  3. observe the object falling through the floor.