Detecting whether users are standing up or sitting down
Hello!
I'm not new to game development but I AM pretty new to developing with the Oculus Rift and C# in general. I'm trying to create a script that detects movement when players are using the Oculus Rift. Basically, I want Unity to detect if players are standing, sitting, or moving in between. Accordingly, I want the player size to shrink or grow based on their physical position. So if the player is standing, they're ginormous and if they're sitting, they'll be small.
So far, I haven't had much luck. I'm using Unity 5.1 (but can go to previous versions if needed) with the UnityEngine.VR integration. Form what I've seen, the integration doesn't seem to detect the Oculus Rift moving in the positive or negative Y direction. Frankly, I'm not sure where to go from here. This is for a class project and I can't seem to figure this out. Can anyone point me in the right direction or help me write some code to do this?
Thanks!
I'm not new to game development but I AM pretty new to developing with the Oculus Rift and C# in general. I'm trying to create a script that detects movement when players are using the Oculus Rift. Basically, I want Unity to detect if players are standing, sitting, or moving in between. Accordingly, I want the player size to shrink or grow based on their physical position. So if the player is standing, they're ginormous and if they're sitting, they'll be small.
So far, I haven't had much luck. I'm using Unity 5.1 (but can go to previous versions if needed) with the UnityEngine.VR integration. Form what I've seen, the integration doesn't seem to detect the Oculus Rift moving in the positive or negative Y direction. Frankly, I'm not sure where to go from here. This is for a class project and I can't seem to figure this out. Can anyone point me in the right direction or help me write some code to do this?
Thanks!
