Hello,
I have a problem when i drag my mouse with pointer behaviors.
Here is my PG : https://playground.babylonjs.com/#XCPP9Y#9581
If i click on a sphere and drag it, the line is supposed to “follow” the sphere. If i stop dragging without releasing the mouse, the line is not updating.
I don’t know if it’s au bug or an issue in my code.
Thanks for your help,
Boris
1 Like
musk
November 9, 2021, 10:58am
2
It looks the same as what I saw on this topic
Ooh, I gotcha now I think, here’s a simple example of updating the connecting line each time one of the mesh endpoints is dragged.
https://playground.babylonjs.com/#YEZPVT#837
Edit, it’s a little easier to just use the same position object for the meshes and line points, without the need to keep track of the index.
https://playground.babylonjs.com/#YEZPVT#839
Ooh, one more edit, here’s a smoother version that fixes the issue of the line not updating right away wh…
4 Likes