More implementation on GetPortalOrientation.