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.41k forks source link

The initial orientation isn't restored when an object is removed from a media frame #6402

Open Exairnous opened 11 months ago

Exairnous commented 11 months ago

Description Putting an object into a media frame changes it to face the direction of the media frame, but taking it out again doesn't return it to its original orientation as is done with the object's scale.

To Reproduce Steps to reproduce the behavior:

  1. Go to a room with this scene: https://hubs.mozilla.com/scenes/qgaMVT9/mediaframealignment
  2. Spawn in an object.
  3. Approach a media frame and put the object in.
  4. See that it flips around.
  5. Remove the object from the media frame and see that the object is still facing the new direction and hasn't returned to facing its original direction

Expected behavior The object should return to its original orientation when removed from a media frame.

Video https://github.com/mozilla/hubs/assets/9795121/327bd218-b560-43f1-9c63-f3ed318155bc

Hardware

Additional context This affects both the AFrame and bitECS loaders.