I’am trying to add the pointerDragBehavior to more than one object but, it’s only added to the last one in the code. How do I solve this? Is there a possibility to add it to all objects of the scene?
You’ll find a solution here:
I did something similiar in this PG:
It also uses the PointerDragBehavoir and you can control, on which mesh it can be attached to…
Other examples may use a combination of Raypicking and Predicate functions, to decide which meshes are pickable…there are many ways, but if you want to stick to PointerDragBehavoirs just check out the provided example.