drag pointer, then create another mesh on previous mesh’s position;
keep dragging, move new created mesh.
in other words: pointer down on mesh A and hold → drag start (create mesh B) → drag (move B with pointer on plan perpendicular to camera norm) → pointer (release it)
I have tried with scene.onPointerObservable and PointerDragBehavior, the code is either ugly or non-work. How can I do that?
I have tried your solution, and I found a problem. I want sphere to move along the plane facing the camera. According to doc, I just need to leave PointerDragBehavior() blank, or I can use camera.target.substract(camera.position) to define a plane parallel to the camera. But the sphere is very weird. Could you help me find out why?