Example #1
0
        override public Capture BeginCapture(InputState input, CaptureSide eSide)
        {
            int hit_pt_id = tool.FindNearestHitPoint(WorldRay(input));

            if (hit_pt_id >= 0)
            {
                tool.Begin(hit_pt_id, WorldRay(input));
                return(Capture.Begin(this));
            }
            return(Capture.Ignore);
        }
Example #2
0
        override public Capture BeginCapture(InputState input, CaptureSide eSide)
        {
            Ray3f worldRay  = (eSide == CaptureSide.Left) ? input.vLeftSpatialWorldRay : input.vRightSpatialWorldRay;
            int   hit_pt_id = tool.FindNearestHitPoint(worldRay);

            if (hit_pt_id >= 0)
            {
                tool.Begin(hit_pt_id, worldRay);
                return(Capture.Begin(this, eSide));
            }
            return(Capture.Ignore);
        }