While exploring the example provided on the website (), I noticed that they are moving the selected cube along a plane relative to the camera using unprojection with raycaster. However, I am struggling to understand how to configure this setup so that the object always moves along the ground (plane) regardless of the angle of the camera. The main goal is to enable users to use the mouse to move the object along the ground even if the camera is not directly above it. Being new to Three.js, I would appreciate a detailed explanation of what I might be overlooking or missing. Feel free to ask clarifying questions if needed.
My current project resembles the following image, and my aim is to manipulate the boxes using the mouse: