How to drag a plane in the direction of its normal using pointermove and pointerdown

I am trying to achieve mesh translation in the direction of its normal .

I have implemented using the pointerscroll but need some help with replicate the same using mouse movements.

I need to pick the plane and use mouse pointer movement for translating

This demo will show you how to achieve drag using pointer events.

In this case the plane the objects are dragged on is the ground mesh, but you can change it to whatever fits your usecase:

1 Like

Im quite stumbled over this one. Can you give me some more hints.

You could create an invisible plane fitting your drag constraint and use it in the previous code?

1 Like