Move object based on mouse movement

I need to move a 3D object using mouse. The Object is a rectangle with one end fixed at bottom left (0,0) corner and other end free to move using mouse.
Should I rotate the rectangle object on Z with CoR at (0,0)? if yes, how can I relate move delta movement with Z angle? Please let me know if there’s any other option.

Hi @dhruv_er and welcome to the forum. Here are some useful links

Hope they are of use. When you can it would be really useful for you to create a playground with your object and code to move it and then tell us the issues you still have.

1 Like