Kinect.VisualGestureManager.GetGestureProgress C# (CSharp) Method

GetGestureProgress() public method

Gets the progress of the specified continuous gesture, in range [0, 1].
public GetGestureProgress ( string gestureName ) : float
gestureName string Gesture name
return float
        public float GetGestureProgress(string gestureName)
        {
            if (gestureNames.Contains(gestureName))
            {
                VisualGestureData data = gestureData[gestureName];

                if (data.isContinuous)
                {
                    return data.progress;
                }
            }

            return 0f;
        }