Camera's do not move or rotate relative to the portal
Unwanted behavior can be seen by rotating one of the portals so their rotation doesn't equal each other.
After hours of investigating same issue, I found a solution here: https://answers.unity.com/questions/1118179/portals-transform-rotation-of-ported-objects.html
With following method you can rotate both portal without any problem. public void setCameraTransform() { portalCamera.transform.position = otherPortal.transform.TransformPoint(portal.transform.InverseTransformPoint(playerCamera.transform.position)); portalCamera.transform.rotation = otherPortal.transform.rotation * Quaternion.Inverse(portal.transform.rotation) * playerCamera.transform.rotation; }
with portal1 = portal, portal2 = otherPortal