|
MeshBaker
|
Rotation gesture, also known as twist gesture This gesture is performed by moving two fingers around a point of reference in opposite directions More...
Inherits MultiFingerGestureRecognizer.
Public Attributes | |
| float | MinDOT = -0.7f |
| Rotation DOT product treshold - this controls how tolerant the twist gesture detector is to the two fingers moving in opposite directions. More... | |
| float | MinRotation = 1.0f |
| Minimum amount of rotation required to start the rotation gesture (in degrees) More... | |
Public Attributes inherited from GestureRecognizer | |
| GestureResetMode | ResetMode = GestureResetMode.StartOfTouchSequence |
| Get or set the reset mode for this gesture recognizer More... | |
Protected Member Functions | |
| override int | GetRequiredFingerCount () |
| Return the exact number of active touches required for the gesture to be valid More... | |
| override bool | CanBegin (FingerGestures.IFingerList touches) |
| This controls whether or not the gesture recognition should begin More... | |
| override void | OnBegin (FingerGestures.IFingerList touches) |
| Method called when the gesture recognizer has just started recognizing a valid gesture More... | |
| override GestureState | OnActive (FingerGestures.IFingerList touches) |
| Method called on each frame that the gesture recognizer is in an active state More... | |
Protected Member Functions inherited from MultiFingerGestureRecognizer | |
| override void | Start () |
| void | OnFingerCountChanged (int fingerCount) |
Protected Member Functions inherited from GestureRecognizer | |
| virtual void | Reset () |
| Put back the gesture recognizer in Ready state and reset any relevant data ResetMode More... | |
| virtual void | OnTouchSequenceStarted () |
| Called when the first finger of a new multi-touch sequence has touched the screen More... | |
| virtual void | OnTouchSequenceEnded () |
| Called when all the fingers that participated in the current multi-touch sequence are no longer touching the screen More... | |
| override void | OnUpdate (FingerGestures.IFingerList touches) |
| This is called after FingerGestures has updated the state of each finger More... | |
| virtual GestureState | OnReady (FingerGestures.IFingerList touches) |
| virtual bool | ShouldFailFromReady (FingerGestures.IFingerList touches) |
| bool | Young (FingerGestures.IFingerList touches) |
| Check if all the touches in the list started recently More... | |
Protected Member Functions inherited from FGComponent | |
| virtual void | Awake () |
| virtual void | OnEnable () |
| virtual void | OnDisable () |
Properties | |
| float | TotalRotation [get] |
| Get total rotation angle since gesture started (in degrees) More... | |
| float | RotationDelta [get] |
| Get rotation angle change since last move (in degrees) More... | |
Properties inherited from MultiFingerGestureRecognizer | |
| Vector2 [] | StartPosition [get, set] |
| Vector2 [] | Position [get, set] |
| int | RequiredFingerCount [get] |
Properties inherited from GestureRecognizer | |
| GestureState | PreviousState [get] |
| Get the previous gesture state More... | |
| GestureState | State [get, protected set] |
| Get or set the current gesture state More... | |
| bool | IsActive [get] |
| Return true if the gesture recognition has started and is on-going State More... | |
| FingerGestures.ITouchFilter | TouchFilter [get, set] |
| Get or set the touch filter used to modify the list of active touches about to be processed by the gesture recognizer More... | |
Events | |
| EventDelegate< RotationGestureRecognizer > | OnRotationBegin |
| Event fired when the rotation gesture starts MinRotation MinDOT More... | |
| EventDelegate< RotationGestureRecognizer > | OnRotationMove |
| Event fired when the rotation angle has changed. More... | |
| EventDelegate< RotationGestureRecognizer > | OnRotationEnd |
| Event fired when the rotation gesture is finished TotalRotation More... | |
Events inherited from GestureRecognizer | |
| EventDelegate< GestureRecognizer > | OnStateChanged |
| Event fired whenever the gesture recognizer state changes State PreviousState More... | |
Rotation gesture, also known as twist gesture This gesture is performed by moving two fingers around a point of reference in opposite directions
NOTE: it is recommanded to set ResetMode to GestureResetMode.NextFrame for this gesture
|
protectedvirtual |
This controls whether or not the gesture recognition should begin
| touches | The active touches |
Reimplemented from GestureRecognizer.
|
protectedvirtual |
Return the exact number of active touches required for the gesture to be valid
Implements GestureRecognizer.
|
protectedvirtual |
Method called on each frame that the gesture recognizer is in an active state
| touches | The active touches |
Implements GestureRecognizer.
|
protectedvirtual |
Method called when the gesture recognizer has just started recognizing a valid gesture
| touches | The active touches |
Implements GestureRecognizer.
| float RotationGestureRecognizer.MinDOT = -0.7f |
Rotation DOT product treshold - this controls how tolerant the twist gesture detector is to the two fingers moving in opposite directions.
Setting this to -1 means the fingers have to move in exactly opposite directions to each other. this value should be kept between -1 and 0 excluded.
| float RotationGestureRecognizer.MinRotation = 1.0f |
Minimum amount of rotation required to start the rotation gesture (in degrees)
|
get |
Get rotation angle change since last move (in degrees)
|
get |
Get total rotation angle since gesture started (in degrees)
| EventDelegate<RotationGestureRecognizer> RotationGestureRecognizer.OnRotationBegin |
Event fired when the rotation gesture starts MinRotation MinDOT
| EventDelegate<RotationGestureRecognizer> RotationGestureRecognizer.OnRotationEnd |
Event fired when the rotation gesture is finished TotalRotation
| EventDelegate<RotationGestureRecognizer> RotationGestureRecognizer.OnRotationMove |
Event fired when the rotation angle has changed.
Query RotationDelta to get the angle difference since last frame Query TotalRotation to get the total angular motion since the beginning of the gesture RotationDelta TotalRotation
1.8.12