Rotate a game object align with another object

I am learning the basic editor rotation of gameobject, I am not very clear, I want to rotate an object align with anther object. For example:

According documentation, shift + cmd + select the target object should work, but it doesn’t work! What should I do? I am using unity 2022.3.50f1 with mac os system:

Also, the surface snap with shift + cmd also doesn’t work:

Rotate a GameObject towards a point on a collider

Use look-at rotation to rotate a GameObject towards a point on the surface of a collider. This is useful to orient GameObjects towards a target, such as a camera or player.

To use look-at rotation:

  1. In the Scene view, select the GameObject you want to rotate.
  2. In the Tools overlay, select the Rotate tool or press E.
  3. Click the rotate Gizmo handle to select it.
  4. Hold Shift+Ctrl (macOS: Shift+Command) and move your mouse over the surface of a collider you want to rotate the selected GameObject towards.

Surface snapping

To snap a GameObject to the intersection of a Collider, do the following:

  1. Make sure the Move tool is active.
  2. Hold Shift+Ctrl (macOS: Shift+Command), then click and hold a GameObject’s tool handle.
  3. Drag the GameObject on to another GameObject with a Collider.


The key is not to click but to hold down the mouse.

1 Like

Hi Bemfoo,

Thanks for the answer, but it looks like don’t work on my computer…

This is not a align rotation, but look at rotation.
The real align will snap to others object normal vector…

The way it will work: start rotating on any axis → hold ctrl + shift → hover over other mesh with collider → the forward vector (Z local axis) will align towards raycast point on a collider. This is more like a pointing a gun to a target, not aligning mesh to another.

One cool trick : in rotate mode (E) hold V it will let you choose pivot of the rotation as vertex of selected mesh