Beispiel #1
0
        // see comment above
        public bool Find2DCockpitUIHoverHit(Ray3f orthoEyeRay, out UIRayHit bestHit)
        {
            if (Use2DCockpit == false)
            {
                throw new Exception("FContext.Find2DUIHit: 2D UI layer is not enabled!");
            }

            bestHit = null;
            if (options.EnableCockpit)
            {
                return(activeCockpit.FindUIHoverRayIntersection(orthoEyeRay, out bestHit));
            }
            return(false);
        }