【问题标题】:Unity & Leap Motion - How to get live hand data?Unity & Leap Motion - 如何获取实时手部数据?
【发布时间】:2019-04-25 12:53:41
【问题描述】:

对不起,如果这是一个愚蠢的问题,但我在 Leap Motion Docs 中搜索了 Unity 并且无法弄清楚如何解决我的问题。

我只想从我添加到场景中的脚本中访问跳跃运动控制器检测到的当前手(及其数据,如 PalmNormal 等)。

提前致谢!

【问题讨论】:

    标签: unity3d virtual-reality leap-motion


    【解决方案1】:

    我快速浏览了一下,也许这就是您要找的课程? 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 
    )   
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-02
      相关资源
      最近更新 更多