// Update is called once per frame
    void Update()
    {
        if (SteamVR_Actions._default.Record.GetStateDown(SteamVR_Input_Sources.Any))
        {
            ToggleRecording();
        }

        if (recording)
        {
            if (captureTimer < 0)
            {
                captureTimer = captureFrequencySeconds;
                currentRecording.CaptureState(GestureManager.inst.head, GestureManager.inst.leftHand, GestureManager.inst.rightHand);

                if (currentRecording.recordedStates.Count > 1)
                {
                    leftHandLineRenderer.positionCount  = currentRecording.recordedStates.Count - 1;
                    rightHandLineRenderer.positionCount = currentRecording.recordedStates.Count - 1;

                    leftHandLineRenderer.SetPosition(currentRecording.recordedStates.Count - 2, GestureManager.inst.leftHand.position);
                    rightHandLineRenderer.SetPosition(currentRecording.recordedStates.Count - 2, GestureManager.inst.rightHand.position);
                }
            }
            captureTimer -= Time.deltaTime;
        }
    }