PointerDragBehaviour Issues

While looking at this post PointerDragBehavior keeps resseting my mesh position I found a few issues the one I haven’t solved occurs in this PG Babylon.js Playground

Mousedown and move on sphere, sphere jumps to y = 3 on mousedown but jumps back to y = 1 on drag

Run PG again
Click on sphere. After release do mousedown and move, sphere stays at y = 3.

Not what I would expect but perhaps intended behavior??

not a bug, the Drag Behavior is trying to set the position of the mesh and it considers a stop in momentum as a dragEnd. There are different parameters you can flag to make it stop doing that, but then you have to kinda work in your own behavior. But that is to be expected if you want custom movements like a y offset ect.

3 Likes