【VR】Leap Motion官方文档 RigidHand (Physics)(刚体手型(物理))
2015-08-16 11:57
369 查看
前言
在天才少女骐骐的鼎力支持下,Leap Motion 手部模型部分的API文档翻译工作已补充完毕。原译文链接:http://blog.csdn.net/lugia_du/article/details/47682565
本篇骨骼手型是手部模型的一个派生类,该模型可以参与Unity的物理引擎系统,发生碰撞。
RigidHand (Physics)(刚体手型(物理))
文档链接:https://developer.leapmotion.com/documentation/unity/unity/Unity.RigidHand.htmlThe 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的其他能够检测碰撞的对象进行交互。
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 官网所有,图文内容仅供学习使用。)
相关文章推荐
- 数组实现的队列(限制最大长度)的head、tail指针的修改方法。
- 新手代码之循环语句的简单运用(求最小公倍数与与求最大公约数)
- HDU5391米勒拉宾
- linux学习之路(2)
- webform---组合查询&流水号生成
- 【数论四大定理】
- 采用Pull解析器解析和生成XML内容
- 图片局部放大镜,可在大图上下左右移动并放大对应的区域
- 常用的视频剪辑软件
- android 相机图库调用以及裁剪
- nginx 常用配置说明
- Java NIO系列教程(四) Scatter/Gather
- android学习笔记1
- CodeForces 45C Dancing Lessons
- 暑假热身 A. GCC
- 把握linux内核设计思想(十三):内存管理之进程地址空间
- windows下编译libx264,libx265,libvpx
- 使用C语言求N的阶乘的方法
- 采用SharedPreference保存用户偏好参数设置
- Android SQLite 简单使用示例