PointerDragBehavior

Use the API BABYLON.PointerDragBehavior method of babylon.js to implement a model dragging instance that does not leave the mouse range area, following the mouse position case.

demo link: https://playground.babylonjs.com/#YEZPVT#1894

I don’t understand your question in the deep, but I suppose you need a defined range within you can move objects like in this example physics engine test | Babylon.js Playground (babylonjs-playground.com)

1 Like