简体   繁体   English

Kinect输入到Unity3d输出

[英]Kinect input to Unity3d output

I'm creating the Game using "Kinect xbox 360" and Unity3d. 我正在使用“ Kinect xbox 360”和Unity3d创建游戏。 I have created the link between Kinect and Unity so that the character in Unity3d do the same actions[Movements] that what we do from Kinect sensor. 我创建了Kinect和Unity之间的链接,以便Unity3d中的角色执行与我们从Kinect传感器执行的相同的动作[运动]。

Now my question is how to take that actions[Movements] as input for UNITY3d? 现在我的问题是如何将这些动作[动作]作为UNITY3d的输入?

For Example: If I do up my Right hand the character will walk or run or jump whatever it's. 例如:如果我举起右手,角色将行走,奔跑或跳跃。

How can I check that Hand is Moved up in Script [ UnityScript or C# ] 如何检查脚本中的“手已向上移” [UnityScript或C#]

For Example : 例如 :

 if(GameObject.transform == "RightHand")
  {
     ------------------------
     ------------------------
  }

I searched out all sites through google but No result.... 我通过Google搜索了所有网站,但没有结果。

I have connected the Kinect through ZIGFU with Unity3d. 我已通过ZIGFU与Unity3d连接了Kinect。

Lets see which Adroit will answer for this . 让我们看看哪个Adroit会回答这个问题。 . .! 。!

Well, that heavily depends on the gesture you want to check for. 好吧,这在很大程度上取决于您要检查的手势。 There also is an SDK that comes with some gestures to recognize. 还有一个SDK,其中包含一些可识别的手势。 Have a look at the code: https://www.assetstore.unity3d.com/#/content/7747 看一下代码: https : //www.assetstore.unity3d.com/#/content/7747

An example: You want to check for a hand being held up. 例如:您要检查是否握住了一只手。 Get the object of a handbone and check if it stays over a certain value of the z axis for a couple of milliseconds or seconds. 获取手形物体,并检查其是否在z轴的某个值上停留了几毫秒或几秒钟。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM