Hello! I am a beginner in using Three.js.
My task is to create cards with various content. I started by creating a Group with Mesh and Line, as well as using DragControls to have the ability to move my cards. My problem is that I’m trying to understand how to organize the movement of the entire group as one whole. I need informally define some element as the “leader” and pass its position to all other elements so they can calculate relative positions and update their own positions when an event like “drag” occurs? Or should I do something else? And if I send the entire group as an array of parameters for the first parameter in the DragControls, it will allow each child to be moved individually, which also confuses me.
Please advice on how to properly organize this behavior? Thank you!