Leap Motion官方文档 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的其他能够检测碰撞的对象进行交互。

Leap Motion官方文档 RigidHand (Physics)(刚体手型(物理))_第1张图片

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阶段调用这个方法。


你可能感兴趣的:(Unity)