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

addons: Objects that are added to the room with the A-Frame loader can't be moved #6518

Open Exairnous opened 3 days ago

Exairnous commented 3 days ago

Description Applies to: https://github.com/Hubs-Foundation/hubs/pull/6468 Objects placed in the room can't be moved when you click and drag them. This affects the A-Frame loader only, objects added with the bitECS loader can be moved normally.

To Reproduce Steps to reproduce the behavior:

  1. Enter a Hubs room that uses the A-Frame loader (this is the default for new rooms).
  2. Drag and drop in a GLB file that you have locally on your computer into the room (or use Place -> Upload). This file can be downloaded and used to test if you don't have any GLBs handy: Test_Cube.zip.
  3. Attempt to interact with the object by clicking and dragging on it to move it.
  4. See that the object can't be moved.

Expected behavior The object should be able to be moved.

Hardware

Additional context This bug affects both objects that have been uploaded from your local computer and objects which have been loaded from a URL. This bug can be worked around by the following procedure:

  1. Spawn a media frame cube via the /cube chat command.
  2. Use the media frame cube to capture the object (this allows the object to be moved).
  3. Move the object outside of the media frame.
  4. The object can now be moved normally.