Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.42k forks source link

bitECS: Putting an object with a media frame inside another object with a media frame makes the objects disappear #6403

Open Exairnous opened 10 months ago

Exairnous commented 10 months ago

Description If you take an object with a media frame and try to put it into another object with a media frame, the two objects will fight each other for who captures who and shrink down to an infinitely small size.

To Reproduce Steps to reproduce the behavior:

  1. Go to a room with the new loader enabled, with this scene: https://hubs.mozilla.com/scenes/qgaMVT9/mediaframealignment
  2. Spawn two of the rectangular boxes with media frames and put one inside the other.
  3. Watch them shrink to infinity.
  4. Possibly see one of them come back, but not be clickable.

Expected behavior The rectangular boxes with media frames should be captured like regular objects as happens in the AFrame loader.

Videos bitECS: https://github.com/mozilla/hubs/assets/9795121/af2843ae-4211-4e47-b4b8-ecdfa1f69e32

AFrame: https://github.com/mozilla/hubs/assets/9795121/e6208694-878a-4fa2-b513-ab7dab42e1c9

Hardware