Odd behavior in PointerDragBehavior

Hello,

I’m currently trying out the PointerDragBehavior and I’m experiencing some odd behavior.
I have two playgrounds, the first ist working completely fine - you can drag the plane around arbitrarily:

https://www.babylonjs-playground.com/#JLPAE#346

The second playground has only one difference - a different “size factor” (everything is multiplied with 1000). In this playground, the drag behavior stops working after the plane is dragged for a bit in some direction.

https://www.babylonjs-playground.com/#JLPAE#345

Do I work with values that are simply too large for BabylonJS? Can I “fix” this somehow, so that the second playground would also work?

Kind regards,
Zacherl

Adding @cedric (He will be back next week)

1 Like

Interesting issue…@PolygonalSun is probably the right person to ping for this one, unfortunately he is not feeling well right now but hopefully he can take a look soon :slight_smile:

1 Like

That’s an interesting behavior! Let me take a look …

1 Like

The scales used in your PG are too big to be supported by the dragplane. Only fix I see is to create a bigger dragplane like this:

dragplane | Babylon.js Playground (babylonjs.com)

Thank you for the feedback, this helps a lot!

1 Like