override public Capture UpdateCapture(InputState input, CaptureData data) { if (Released(input)) { tool.End(); return(Capture.End); } else { tool.Update(WorldRay(input)); return(Capture.Continue); } }
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); } }