【VR】Leap Motion官方文档 RigidHand (Physics)(刚体手型(物理))

前言


在天才少女骐骐的鼎力支持下,Leap Motion 手部模型部分的API文档翻译工作已补充完毕。

原译文链接:http://blog.csdn.net/lugia_du/article/details/47682565


本篇骨骼手型是手部模型的一个派生类,该模型可以参与Unity的物理引擎系统,发生碰撞。


RigidHand (Physics)(刚体手型(物理))

文档链接:https://developer.leapmotion.com/documentation/unity/unity/Unity.RigidHand.html

The RigidHand script initializes and updates Unity RigidBody and BoxCollider objects for the palm and fingers (and, optionally, the forearm and wrist). 

刚体手型脚本初始化和更新手掌对象和手指对象的Unity刚体和碰撞盒(前臂和手腕可选)。

RigidHand is used with RigidFinger to allow the prefab hands to interact with other Unity objects using collisions.

刚体手型的作用是令刚体手指允许预设的手型去与Unity的其他能够检测碰撞的对象进行交互。

https://developer-china-cdn.leapmotion.com/documentation/images/unity/Unity_RigidHand.png

The RigidHand and ThickRigidHand prefabs differ primarily in the thickness of the palm. 

刚体手型和厚刚体手型预制件的主要区别是手掌的厚度。

The RigidFullHand prefab includes a RigidBody and BoxCollider for the forearm.

刚体全手预制件包括一个前臂的刚体和碰撞盒。


class RigidHand

Public Functions

override void  InitHand()

Implement this function to initialise this hand after it is created. 

在手型创建后实现这个方法进行初始化。

This function is called by the HandController during the Unity Update() phase when a new hand is detected by the Leap Motion device. 


当一个新的手型被Leap Motion装置检测的时候,手部控制器会在Update()阶段调用这个函数。


override void  UpdateHand()

Implement this function to update this hand once every game loop. 

在每一次游戏循环的时候实现这个方法进行手型更新。

For HandModel instances assigned to the HandController graphics hand list, the HandController calls this function during the Unity Update() phase. 


手部模型被分配到手部控制器的图形手型类的情况下,手部控制器在Update()阶段调用这个方法。


For HandModel instances in the physics hand list, the HandController calls this function in the FixedUpdate() phase.

手部模型被分配到物理手型类的情况下,手部控制器在FixedUpdate阶段调用这个方法。



————————————————————————————————————————————


更多参考:

【VR】Leap Motion 官网文档 脚本参考(目录)


(版权声明:本篇为Leap Motion 官网文档译文,版权归Leap Motion 官网所有,图文内容仅供学习使用。)

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值