C# Класс Kinect.InteractionManager

Interaction manager is the component that deals with hand interactions.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetCursorPosition ( ) : Vector3

Gets the current cursor normalized viewport position.

GetLastLeftHandEvent ( ) : HandEventType

Gets the last detected left hand event (grip or release).

GetLastRightHandEvent ( ) : HandEventType

Gets the last detected right hand event (grip or release).

GetLeftHandClickProgress ( ) : float

Gets the left hand click progress, in range [0, 1].

GetLeftHandEvent ( ) : HandEventType

Gets the current left hand event (none, grip or release).

GetLeftHandScreenPos ( ) : Vector3

Gets the current normalized viewport position of the left hand, in range [0, 1].

GetRightHandClickProgress ( ) : float

Gets the right hand click progress, in range [0, 1].

GetRightHandEvent ( ) : HandEventType

Gets the current right hand event (none, grip or release).

GetRightHandScreenPos ( ) : Vector3

Gets the current normalized viewport position of the right hand, in range [0, 1].

GetUserID ( ) : long

Gets the current user ID, or 0 if no user is currently tracked.

IsInteractionInited ( ) : bool

Determines whether the InteractionManager was successfully initialized.

IsLeftHandClickDetected ( ) : bool

Determines whether a left hand click is detected, false otherwise.

IsLeftHandPress ( ) : bool

Determines whether the left hand is pressing.

IsLeftHandPrimary ( ) : bool

Determines whether the left hand is primary for the user.

IsRightHandClickDetected ( ) : bool

Determines whether a right hand click is detected, false otherwise.

IsRightHandPress ( ) : bool

Determines whether the right hand is pressing.

IsRightHandPrimary ( ) : bool

Determines whether the right hand is primary for the user.

OnDestroy ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void

Приватные методы

Метод Описание
HandStateToEvent ( KinectInterop handState, HandEventType lastEventType ) : HandEventType

Описание методов

GetCursorPosition() публичный Метод

Gets the current cursor normalized viewport position.
public GetCursorPosition ( ) : Vector3
Результат Vector3

GetLastLeftHandEvent() публичный Метод

Gets the last detected left hand event (grip or release).
public GetLastLeftHandEvent ( ) : HandEventType
Результат HandEventType

GetLastRightHandEvent() публичный Метод

Gets the last detected right hand event (grip or release).
public GetLastRightHandEvent ( ) : HandEventType
Результат HandEventType

GetLeftHandClickProgress() публичный Метод

Gets the left hand click progress, in range [0, 1].
public GetLeftHandClickProgress ( ) : float
Результат float

GetLeftHandEvent() публичный Метод

Gets the current left hand event (none, grip or release).
public GetLeftHandEvent ( ) : HandEventType
Результат HandEventType

GetLeftHandScreenPos() публичный Метод

Gets the current normalized viewport position of the left hand, in range [0, 1].
public GetLeftHandScreenPos ( ) : Vector3
Результат Vector3

GetRightHandClickProgress() публичный Метод

Gets the right hand click progress, in range [0, 1].
public GetRightHandClickProgress ( ) : float
Результат float

GetRightHandEvent() публичный Метод

Gets the current right hand event (none, grip or release).
public GetRightHandEvent ( ) : HandEventType
Результат HandEventType

GetRightHandScreenPos() публичный Метод

Gets the current normalized viewport position of the right hand, in range [0, 1].
public GetRightHandScreenPos ( ) : Vector3
Результат Vector3

GetUserID() публичный Метод

Gets the current user ID, or 0 if no user is currently tracked.
public GetUserID ( ) : long
Результат long

IsInteractionInited() публичный Метод

Determines whether the InteractionManager was successfully initialized.
public IsInteractionInited ( ) : bool
Результат bool

IsLeftHandClickDetected() публичный Метод

Determines whether a left hand click is detected, false otherwise.
public IsLeftHandClickDetected ( ) : bool
Результат bool

IsLeftHandPress() публичный Метод

Determines whether the left hand is pressing.
public IsLeftHandPress ( ) : bool
Результат bool

IsLeftHandPrimary() публичный Метод

Determines whether the left hand is primary for the user.
public IsLeftHandPrimary ( ) : bool
Результат bool

IsRightHandClickDetected() публичный Метод

Determines whether a right hand click is detected, false otherwise.
public IsRightHandClickDetected ( ) : bool
Результат bool

IsRightHandPress() публичный Метод

Determines whether the right hand is pressing.
public IsRightHandPress ( ) : bool
Результат bool

IsRightHandPrimary() публичный Метод

Determines whether the right hand is primary for the user.
public IsRightHandPrimary ( ) : bool
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnGUI() публичный Метод

public OnGUI ( ) : void
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void