Beispiel #1
0
 override public Capture UpdateCapture(InputState input, CaptureData data)
 {
     if (Released(input))
     {
         tool.End();
         return(Capture.End);
     }
     else
     {
         tool.Update(WorldRay(input));
         return(Capture.Continue);
     }
 }
Beispiel #2
0
        override public Capture UpdateCapture(InputState input, CaptureData data)
        {
            bool bReleased = (data.which == CaptureSide.Left) ? input.bLeftTriggerReleased : input.bRightTriggerReleased;

            if (bReleased)
            {
                tool.End();
                return(Capture.End);
            }
            else
            {
                Ray3f worldRay = (data.which == CaptureSide.Left) ? input.vLeftSpatialWorldRay : input.vRightSpatialWorldRay;
                tool.Update(worldRay);
                return(Capture.Continue);
            }
        }