Skip to content

amemov/MRTK3-Gestures-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MRTK3 Custom Gesture Recognition for Unity

Problem

MRTK3 in Unity uses version of XR Hands 1.3.0, which doesn't have prefabs for custom gesture definition. It is still possible to use tap, air-tap in Unity project to interact with MRTK UI prefabs and other objects seamlessly, but that's not the case if you want to have a Thumbs-Up, Fist, etc. This script provides support for Thumbs-Up and Fist ( more gestures will be available in the future ). This implementation is a reverse-engineered version of the model descriped in XR Hands 1.4.1 and is based on Vector3 and Quaternion manipulations of joints data.

Warning

Don't be a smart cookie like me and DO NOT update XR Hands to 1.4.1 or higher if your MRTK3 project has XR Hands 1.3.0. XR Rig won't be able to track your hands in the scene in the scene anymore and it will break your project

Supported Gestures

  • Thumbs Up
  • Fist
  • Victory, Thumbs Down, Palm Up, Shaka, Rock ( in process )

Input

script

  • Menu - some Game Object in scene that is SetActive by Thumbs-Up and Fist
  • Curl Threshold - defines sensitivity of Thumbs-Up
  • Fist Threshold - defines sensitivity of Fist

About

Script for Unity that references MRTK3 API and allows user-defined gesture control of game objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages