You can check the attached mesh and constrain its position. If you have no mesh, you can add a transient transform. Once it’s done, it’s just a matter of setting the position in onDragObservable. Like this:
as always, thank for the fast reply @Cedric what about if the plane is rotated? I think there’s need to be a method that takes position of mesh and rotation of plane? So it could calculate eq. max position of x with the given x, z? https://playground.babylonjs.com/#5Z8Q7H#2