matrix-org / matrix-org/thirdroom

Objects falling through floor when scripts reload

Open
#613 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
647
Forks
70
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Reproduce the problem by spawning a physics object through a script, reloading the scene from the script editor, and observing whether it falls through the floor; then trace script loading and physics coordination. Done means the repro no longer allows objects to pass through the floor during reload.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.