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.
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