https://www.babylonjs-playground.com/#9UFEBE#57
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?
https://www.babylonjs-playground.com/#9UFEBE#57
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?
I did something similiar in this PG:
https://www.babylonjs-playground.com/#9UFEBE#47
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.