示例#1
0
        private void UpdateAlignMarkers(Matrix4x4 worldToCamMat, Vector3 screenEdge)
        {
            Transform targetTranform = FlightGlobals.fetch.vesselTargetTransform;
            Vector3d  fwd            = worldToCamMat.MultiplyVector(targetTranform.forward).normalized;
            Vector3d  rgt            = worldToCamMat.MultiplyVector(targetTranform.right).normalized;
            Vector3d  up             = worldToCamMat.MultiplyVector(targetTranform.up).normalized;

            _targetAlignmentMarker.SetPositions(fwd, rgt, up);
            _edgeMarkers.SetAlignment(fwd, screenEdge);
        }