Esempio n. 1
0
        // Update is called once per frame
        void Update()
        {
            leapMat      = GetLeapMatrix();
            CurrentFrame = leap_controller_.GetTransformedFrame(leapMat, 0);

            //perFrameFixedUpdateOffset_ contains the maximum offset of this Update cycle
            smoothedFixedUpdateOffset_.Update(PerFrameFixedUpdateOffset, Time.deltaTime);
            float now = leap_controller_.Now();
            //Debug.Log("leap_controller_.Now():" + leap_controller_.Now() + " - CurrentFrame.Timestamp:" + CurrentFrame.Timestamp + " = " + (leap_controller_.Now() - CurrentFrame.Timestamp));
            //Debug.Log("provider.Update().CurrentFrame.Id: " + CurrentFrame.Id);
        }