Master Of Animation, Games & Interactivity
Master Of Animation, Games & Interactivity

The frustrations of learning Unity continues.

Tried triggering a jump state animation within a prefab character that I got from the Asset Store in Unity as a test only, using the Kinect jump gesture detection system I had set up from my prototype. Previously, I was just using the default avatar that came with the Kinect asset - I wanted to try hooking up the gesture detection system with a custom character so I can get an idea of how to design my own characters for this game.

I ran into all sorts of issues where the character would jump twice only and then stop (turned out there was some kind of issue with the script which I haven't fully resolved yet, but managed to fix for the time being so the max jump count isn't 2); and then another issue where the character would jump twice on every human jump detected by the Kinect. :'( Turned out it might be because of a slight lag in the Kinect detection system, and managed to fix this in the code by switching back to a false bool straight after the jump animation plays.

As you can see in the screen recording, it's not triggering the jump animation every time. Still trying to pinpoint what the issue is... but at least it's kinda working!

About This Work

By Helen Kwok
Email Helen Kwok
Published On: 07/09/2019

academic:

play

mediums:

interactive, physical, programmatic

scopes:

sketch

tags:

AGI Studio 2, Studio 2, Unity, kinect, testing