码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-08-13 14:27:53      阅读:271      评论:0      收藏:0      [点我收藏+]

标签:vr   leap motion   api   磁性捏取   翻译   

前言


至此LeapMotion的Unity主体部分的翻译全部结束,同时本篇也是搭档的第十篇博客。

为了纪念这里程碑式的时刻,现将微信二维码头像换成合照 *^-^*


原译文链接:http://blog.csdn.net/qq_18408937/article/details/47452343


磁性捏取类是为了应对体感输入的一种有效方式,为了增强用户体验,让操作更容易比让操作更拟真往往更重要。


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.

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


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


更多参考:

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


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



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

标签:vr   leap motion   api   磁性捏取   翻译   

原文地址:http://blog.csdn.net/duzixi/article/details/47611149

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!