【VR】Leap Motion 官网文档 MagneticPinch (磁性捏取)

前言:

至此LeapMotion的Unity部分翻译全部结束,同时也是本人的第十篇博客。纪念下这里程碑式的时刻(女友答应博客发到第十篇,头像换成合照~哈哈)。


MagneticPinch 磁性捏取


Attach this script to a RigidHand object to enable grabbing moveable Unity objects by pinching. The script uses a simple distance check and pulls the object to the hand (rather than simulating the physics of picking up an object by contact). You can specify the range and the strength of the force that moves the object to the hand.

将这个脚本添加到骨骼绑定的手对象上使其能够抓住Unity对象并移动。脚本用一个简单的距离检测并用手拖拽对象(而不是物理模拟通过接触来拾取一个对象)。你可以指定范围和力度以便将对象移到手上。


 

class MagneticPinch 磁性捏取类

Detects pinches and grabs the closest rigidbody if it’s within a given range.

Attach this script to the physics hand object assinged to the HandController in a scene.

检测给定范围内最近的刚体对其进行捏取和抓取。

将这个脚本添加到场景中手部控制器的物理手对象上。


Public Members 公共变量

float forceSpringConstant   float 弹性力常量

The stiffness of the spring force used to move the object toward the hand.

用于移动对象到手部的弹性力的强度。


float magnetDistance   float 吸取距离

The maximum range at which an object can be picked up.

对象能够被拾取的最大范围。

你可能感兴趣的:(api,unity3d,翻译,VR,Leap,motion)