How do objects move only along the x and z axes?

Right click and drag, hoping that the object will only move along the x and z axes, I did think about using pointerDragBehavior but he didn’t have the concept of drag groups, that is, drag in one direction, the objects don’t move together, they move against one object

cc @Cedric our gizmo wizard

You could use dragging with parenting maybe so that moving the parent also moves the child. The parent would be an invisible bounding box around your group of object for example.

When you right click with the ArcRotateCamera, you actually pan the camera long its local X and Y axis, the objects themselves don’t move :+1:

what @CrashMaster said :slight_smile:
It’s camera panning, not object translation.
You can parent the meshes you want to translate at click pointer down and unparent when click pointer up. And drag/translate the parent transform.

1 Like