/// <summary> /// Defines a gesture. /// </summary> /// <returns><c>true</c>, if gesture was defined successfully, <c>false</c> otherwise.</returns> /// <param name="gestureName">Gesture name.</param> /// <param name="duration">Duration for a still gesture.</param> /// <param name="palmVector">Palm vector for this gesture.</param> public bool DefineGesture(string gestureName, Vector3 palmNorm, float duration = .0f, bool posLock = true) { if (!isDefiningNewMotion || currentEditMotion == null) { return(false); } HandMatchGesture item = new HandMatchGesture(gestureName, palmNorm, duration, posLock); currentEditMotion.AddMatchItem(item); return(true); }