But for some reason it works here and not in my code on the start before pressing the button, i can move parts of the model, that is desired behavior, then i click the button to be able to move the whole model, then click again to move parts and there my problem occurs, rest of the meshes start following the dragged mesh, do i need to remove drag behaviors?
Also i dont understarnd why is it working from the start now, in my code when i select the part of the model the rest start to move with it, not like here where i can move the parts freely before clicking the button. If you need any more clarification or if i described poorly im more than happy to provide more info
Hi, all the best in New Year to you and the BabylonJS team.
I created a new playground:
Here you can see more clearly what I’m trying to achieve:
You can drag the whole model
When the button is clicked you should be able to drag only selected meshes.
When the button is clicked again to drag the whole model, why are the rest of the meshes, if dragged before, not “glued” to the parent like before?
On the phone, when the model is scaled up or down with fingers, the ability to move the camera around is lost .
I don’t know if I’m being more precise in what I’m trying to achieve, I just want to get rid of some of the inconsistencies in the behavior and I don’t know how to.
Hi, thank you, It did solve the issue, however I’m still not getting any luck with this:
On the phone, when the model is scaled up or down with fingers, the ability to move the camera around is lost
Also, and I can’t reproduce this issue with the snowman model, but on the car model I have 2 of the wheels are constantly getting smaller when I tap on them to drag them around, that issue is on the computer as well as the phone. Do you maybe have any idea what causes that?
Can you share the car PG? The drag behavior doesn’t scale anything, so the only thing that could make them smaller is them getting farther away in the Z direction. You could put a grid on the ground to check this
Sorry I don’t know how to make a pg with local model. The model in question is this one:
I do have a grid on the ground, and the mesh is not going farther away, it’s just getting smaller. I could not reproduce the issue with some of the models I have. Only this one. Front and rear right wheels are getting smaller, only on this model. I find it really strange.
To reproduce:
Click the button to be able to move individual meshes, drag front or rear right wheel and they will get smaller as they are being pressed.