In a current project I need to be able to constrain the movement of placed 3d objects based on a drag operation.
So 2 steps
1-Selection
Press and hold briefly to select object
2-Movement
While continuing to press, dragging moves selected object but constrained to juts one axis, local to the object
An actual example. In an AR scene you have placed 3D picture frames on a real world wall.
You need to re-arrange these frames on the wall.
So press and hold to select a frame, then drag to constrain the movement along the real world wall.
Can anyone get me started in solving this?
What is required for each step?
Are there any existing demos or code samples that have this functionality?