,
Hello
I am trying to make rotation for object in the image , the gizmos are showing both objects local rotation. I need to match the metal plate rotation to the point near it on its local three axis.
I used this code
targetObject.rotation = Quaternion.LookRotation(transform.right, transform.forward);
but the metal plate forward will match the point right direction and the plate up direction will match the point forward direction, and that what i want . however i can’t find a way to let the plate X axis match the point negative Y axis.