FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Gestures.OpenPalmThrustGesture Class Reference

Gesture used for detecting a "thrust" in a specific direction, with the palm open. More...

Inheritance diagram for FMAR.Gestures.OpenPalmThrustGesture:
FMAR.Gestures.GestureBase

Public Member Functions

bool IsPalmOpen (CommonHand activeHand)
 Determines if the palm is open based on the distance between the fingertips and the palm's center.
 

Public Attributes

UnityEvent OnGestureDetected
 Triggered when a palm thrust gesture is detected.
 

Protected Member Functions

override void GestureUpdate (CommonHand activeHand)
 Updates the gesture state based on the active hand's movement and orientation.
 
- Protected Member Functions inherited from FMAR.Gestures.GestureBase
virtual void Update ()
 Updates the gesture state based on the active hand controller.
 
void GestureUpdate (CommonHand activeHand)
 Updates the gesture state based on the active hand.
 

Additional Inherited Members

- Protected Types inherited from FMAR.Gestures.GestureBase
enum  PinchFinger { Index , Middle , Ring , Pinky }
 
- Protected Attributes inherited from FMAR.Gestures.GestureBase
bool isRight
 
- Properties inherited from FMAR.Gestures.GestureBase
bool IsActive [get, protected set]
 

Detailed Description

Gesture used for detecting a "thrust" in a specific direction, with the palm open.

Member Function Documentation

◆ GestureUpdate()

override void FMAR.Gestures.OpenPalmThrustGesture.GestureUpdate ( CommonHand activeHand)
inlineprotected

Updates the gesture state based on the active hand's movement and orientation.

Parameters
activeHandThe active hand performing the gesture.

◆ IsPalmOpen()

bool FMAR.Gestures.OpenPalmThrustGesture.IsPalmOpen ( CommonHand activeHand)
inline

Determines if the palm is open based on the distance between the fingertips and the palm's center.

Parameters
activeHandThe active hand to check.
Returns
True if the palm is open, otherwise false.

Member Data Documentation

◆ OnGestureDetected

UnityEvent FMAR.Gestures.OpenPalmThrustGesture.OnGestureDetected

Triggered when a palm thrust gesture is detected.


The documentation for this class was generated from the following file: