Add objects(3d objects created from mesh) inside the room.
Have the ability to move objects within the room.
The room is constructed from mesh.(We need to fix the room movement.
The camera is ArcRotateCamera (We are open to suggestion, if this has to be changed)
Current status and issue we are facing:
After adding an object to room we are not able to restrict the object inside the room. Also if you look at the playground attached, the outside surface of “seagulf.glb” can be clicked and moved, but we cannot move the region which is inside the mesh box.
Technically we need to add all the objects inside the box and move it within the box w.r.t. the walls surface of the box.
Here is the playground for a room (Code)
The objects are classified as parent and child(defined by attributes)
The parent can move along the periphery of wall of the room
The child object movement needs to be confined to parent’s boundary.