unity3d - Unity & Leap Motion - 如何获取实时手部数据?
问题描述
抱歉,如果这是一个愚蠢的问题,但我在 Leap Motion Docs 中搜索了 Unity 并且无法弄清楚如何解决我的问题。
我只想从我添加到场景中的脚本中访问跳跃运动控制器检测到的当前手(及其数据,如 PalmNormal 等)。
提前致谢!
解决方案
我快速浏览了一下,也许这就是您要找的课程?
https://leapmotion.github.io/UnityModules/class_leap_1_1_hand.html
例如你想要 PalmPosition
Hand currentHand = new Hand();
currentHand.PalmPosition;
这是它包含的所有内容
Hand ( long frameID,
int id,
float confidence,
float grabStrength,
float grabAngle,
float pinchStrength,
float pinchDistance,
float palmWidth,
bool isLeft,
float timeVisible,
Arm arm,
List< Finger > fingers,
Vector palmPosition,
Vector stabilizedPalmPosition,
Vector palmVelocity,
Vector palmNormal,
LeapQuaternion palmOrientation,
Vector direction,
Vector wristPosition
)
推荐阅读
- vba - 在二维数组中查找现有字符串
- node.js - 如何使用猫鼬查询的结果过滤数组?
- datetime - 在 Python 中将日期添加到日期时间
- javascript - 反应本机代码中的这种条件语法是什么?
- swift - 如何从 Firebase 获取图像并将其保存到 tableViewCell 中的图像?
- javascript - 为什么类名被重新定义后仍可以在类内部引用?
- c# - 如何在 C# 中传递和使用泛型对象?
- android - 带有释放模式的空白屏幕,应用程序无法启动。在调试模式下工作正常
- json - 执行 ajax 调用时序列化类型对象时检测到循环引用
- stm32 - NRF24L01+ TX 和 RX 时序问题?