[SOURCE] How to Detect a Movement in VR (Patreon)
Published:
2020-11-25 17:44:19
Imported:
2022-10
Downloads
Content
Hi guys, here is the source code for the gesture detection mechanism that you can watch here :
PART 1 : https://youtu.be/GRSOrkmasMM
PART 2 : https://youtu.be/kfA_73npjMA
I've also made a slight modification in the script from the video by adding these three lines of code in the start function :
//-----------------------------
TextAsset[] gesturesXml = Resources.LoadAll<TextAsset>("GestureSet/");
foreach (TextAsset gestureXml in gesturesXml)
trainingSet.Add(GestureIO.ReadGestureFromXML(gestureXml.text));
//------------------------------
This allow me to put the gesture file that I made during the tutorial in the Unity project and add them to the training set.