コード例 #1
0
 public bool FindRayIntersection(Ray3f ray, out UIRayHit hit)
 {
     if (is_interactive == false)
     {
         hit = null;
         return(false);
     }
     return(HUDUtil.FindNearestRayIntersection(Children, ray, out hit));
 }
コード例 #2
0
ファイル: FScene.cs プロジェクト: ZeroLu/frame3Sharp
        public bool FindSORayIntersection_PivotPriority(Ray ray, out SORayHit hit, Func <SceneObject, bool> filter = null)
        {
            bool bHitPivot = HUDUtil.FindNearestRayIntersection(SceneObjects, ray, out hit, (s) => { return(s is PivotSO); });

            if (bHitPivot)
            {
                return(true);
            }
            return(HUDUtil.FindNearestRayIntersection(SceneObjects, ray, out hit, filter));
        }
コード例 #3
0
        public bool FindSORayIntersection_PivotPriority(Ray3f ray, out SORayHit hit, Func <SceneObject, bool> filter = null)
        {
            bool bHitPivot = HUDUtil.FindNearestRayIntersection(VisibleSceneObjects, ray, out hit, is_priority_pivot);

            if (bHitPivot)
            {
                return(true);
            }
            return(HUDUtil.FindNearestRayIntersection(VisibleSceneObjects, ray, out hit,
                                                      (SelectionMask == null) ? filter : mask_filter(filter)));
        }
コード例 #4
0
 public bool FindSORayIntersection(Ray3f ray, out SORayHit hit, Func <SceneObject, bool> filter = null)
 {
     return(HUDUtil.FindNearestRayIntersection(VisibleSceneObjects, ray, out hit,
                                               (SelectionMask == null) ? filter : mask_filter(filter)));
 }
コード例 #5
0
 public bool FindUIRayIntersection(Ray3f ray, out UIRayHit hit)
 {
     return(HUDUtil.FindNearestRayIntersection(vUIElements, ray, out hit));
 }
コード例 #6
0
 public bool FindRayIntersection(Ray3f ray, out UIRayHit hit)
 {
     return(HUDUtil.FindNearestRayIntersection(Children, ray, out hit));
 }
コード例 #7
0
ファイル: FScene.cs プロジェクト: ZeroLu/frame3Sharp
 public bool FindSORayIntersection(Ray ray, out SORayHit hit, Func <SceneObject, bool> filter = null)
 {
     return(HUDUtil.FindNearestRayIntersection(SceneObjects, ray, out hit, filter));
 }