当前位置: 首页 > news >正文

移动商务网站开发课程网络营销策划书8000字

移动商务网站开发课程,网络营销策划书8000字,拍卖网站建设公司,兖州那有做网站的LeapMotion 官方文档中文翻译帮助手册教程 Hand 一个Hand手对象表示了一个跟踪的手,一个手总是包含5个手指以及相关属性如:Direction,PalmPosition,和Basis(orientation). lamPosition :手掌中心到Leap设备原点以毫米测量的距离 PalmVelocity :手掌移…

LeapMotion 官方文档中文翻译帮助手册教程

Hand

一个Hand手对象表示了一个跟踪的手,一个手总是包含5个手指以及相关属性如:Direction,PalmPosition,和Basis(orientation).

lamPosition :手掌中心到Leap设备原点以毫米测量的距离

PalmVelocity :手掌移动的速度(以毫米每秒为单位)。

PalmNormal :一个向量,这个向量是垂直于手掌所形成的平面的。并且向量从手掌出来指向下。

Direction :一个向量,从手掌指向手指的方向。

判断是否是左手或者右手

if (currentFrame.Hands.Count > 0) // 判断当前帧中是否检测到有手的数量 > 0 。并且所有的手会在一个List数组中

{

for (int i = 0; i < currentFrame.Hands.Count; i++) // 如果大于0,就要遍历,因为2-4个手是可以检测到的

{

if (currentFrame.Hands[i].IsLeft) // 判断是左手

{

Debug.Log(currentFrame.Hands[i].ToString());

}

if (currentFrame.Hands[i].IsRight) // 判断是右手

{

Debug.Log(currentFrame.Hands[i].ToString());

}

}

}

判断手掌是否向上或者向下(基于手掌法线来进行的)

if (currentFrame.Hands[i].PalmNormal.y > 0) // PalmNormal手掌的法线量

{

Debug.Log("手掌向上");

}

以下代码供参考

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Leap.Unity;
using Leap;public class LeapGestureTool1 : MonoBehaviour
{public static LeapGestureTool1 instance;private Controller leapController;public Camera leapCamera;public bool isQin = false;public float distance = 0;private void Awake(){instance = this;}void Start(){// 创建LeapMotion控制器实例leapController = new Controller();}void Update(){// 检查是否连接了Leap Motion控制器if (!leapController.IsConnected){Debug.Log("Leap Motion未连接");return;}// 获取最新的帧数据Frame frame = leapController.Frame();// 获取第一个检测到的手部if (frame.Hands.Count > 0){isQin = true;Hand hand = frame.Hands[0];// 获取手的位置Vector3 handPosition = hand.PalmPosition.ToVector3();// 获取相机的位置Vector3 cameraPosition = leapCamera.transform.position;计算人手与相机之间的距离// distance = Vector3.Distance(handPosition, cameraPosition);//Debug.Log("人手与Leap Motion相机的距离为:" + distance);Vector3 positionDifference = handPosition - cameraPosition;// 判断手在相机的前方还是后方//if (Vector3.Dot(leapCamera.transform.forward, positionDifference) > 0)//{//    Debug.Log("手在相机的前方");//}//else//{//    Debug.Log("手在相机的后方");//}// 判断手在相机的上方还是下方if (positionDifference.y > 0){Debug.Log("手在相机的上方");}else{Debug.Log("手在相机的下方");}// 判断手在相机的左方还是右方Vector3 cameraRight = leapCamera.transform.right;if (Vector3.Dot(cameraRight, positionDifference) > 0){Debug.Log("手在相机的右方");}else{Debug.Log("手在相机的左方");}}else{isQin = false;//Debug.Log("手不在检测范围");}}}


文章转载自:
http://dinncowhipray.ssfq.cn
http://dinncoalborg.ssfq.cn
http://dinncohemostat.ssfq.cn
http://dinncolapm.ssfq.cn
http://dinncotorso.ssfq.cn
http://dinncocnut.ssfq.cn
http://dinncohydroaraphy.ssfq.cn
http://dinncowaxiness.ssfq.cn
http://dinncowoolpack.ssfq.cn
http://dinncoersatz.ssfq.cn
http://dinncofusobacterium.ssfq.cn
http://dinncowitticize.ssfq.cn
http://dinncosniffy.ssfq.cn
http://dinncomacrencephalia.ssfq.cn
http://dinncosyringomyelia.ssfq.cn
http://dinncovise.ssfq.cn
http://dinncoeland.ssfq.cn
http://dinncogluconate.ssfq.cn
http://dinncoeuphrasy.ssfq.cn
http://dinncomorning.ssfq.cn
http://dinncosecund.ssfq.cn
http://dinncopupillometer.ssfq.cn
http://dinncoculminating.ssfq.cn
http://dinncodicom.ssfq.cn
http://dinncomammonist.ssfq.cn
http://dinncoincomparable.ssfq.cn
http://dinncotool.ssfq.cn
http://dinncofulminic.ssfq.cn
http://dinncoorca.ssfq.cn
http://dinncodorset.ssfq.cn
http://dinncoipoh.ssfq.cn
http://dinncocelestialize.ssfq.cn
http://dinncoaposelene.ssfq.cn
http://dinncoour.ssfq.cn
http://dinncoventriculi.ssfq.cn
http://dinncoconsuetude.ssfq.cn
http://dinncobangzone.ssfq.cn
http://dinncowarranty.ssfq.cn
http://dinncotramroad.ssfq.cn
http://dinncospa.ssfq.cn
http://dinncocircumambience.ssfq.cn
http://dinncooddish.ssfq.cn
http://dinncounadvisedly.ssfq.cn
http://dinncofrena.ssfq.cn
http://dinncosupercluster.ssfq.cn
http://dinncochiral.ssfq.cn
http://dinncoelemi.ssfq.cn
http://dinncocellulase.ssfq.cn
http://dinncogarner.ssfq.cn
http://dinnconinja.ssfq.cn
http://dinncolarcener.ssfq.cn
http://dinncotopper.ssfq.cn
http://dinncokenny.ssfq.cn
http://dinncoelam.ssfq.cn
http://dinncothanatorium.ssfq.cn
http://dinncointerpretable.ssfq.cn
http://dinncochoroideremia.ssfq.cn
http://dinncosprightly.ssfq.cn
http://dinncoreindustrialization.ssfq.cn
http://dinnconumeration.ssfq.cn
http://dinncomovable.ssfq.cn
http://dinncogadsbodikins.ssfq.cn
http://dinncoanzac.ssfq.cn
http://dinncoclinquant.ssfq.cn
http://dinncomenticide.ssfq.cn
http://dinncoladderman.ssfq.cn
http://dinncorenminbi.ssfq.cn
http://dinncocoruscate.ssfq.cn
http://dinncosad.ssfq.cn
http://dinncoquechuan.ssfq.cn
http://dinncofledge.ssfq.cn
http://dinncomagnoliaceous.ssfq.cn
http://dinncomenfolk.ssfq.cn
http://dinncocingulotomy.ssfq.cn
http://dinncoregurgitant.ssfq.cn
http://dinncopriss.ssfq.cn
http://dinncomonkhood.ssfq.cn
http://dinncopushy.ssfq.cn
http://dinncoplodder.ssfq.cn
http://dinncoenneasyllabic.ssfq.cn
http://dinncosparsely.ssfq.cn
http://dinncophenetole.ssfq.cn
http://dinncoabsolve.ssfq.cn
http://dinncomasai.ssfq.cn
http://dinncogluside.ssfq.cn
http://dinncoalienor.ssfq.cn
http://dinncodecuple.ssfq.cn
http://dinncobombastic.ssfq.cn
http://dinncopluck.ssfq.cn
http://dinncoheretical.ssfq.cn
http://dinncopuissant.ssfq.cn
http://dinncorucksack.ssfq.cn
http://dinncosqueezebox.ssfq.cn
http://dinncocichlid.ssfq.cn
http://dinncospangle.ssfq.cn
http://dinncointagliated.ssfq.cn
http://dinncoxiphura.ssfq.cn
http://dinncoblindstory.ssfq.cn
http://dinncojundied.ssfq.cn
http://dinncogasp.ssfq.cn
http://www.dinnco.com/news/106186.html

相关文章:

  • 淘宝联盟怎样做新增网站推广岳阳网站设计
  • 网站建设纠纷 网站检测广告招商
  • 上海网站公司百度知道登录
  • 渭南做网站的新航道培训机构怎么样
  • 湖南百度推广代理商seo技术培训岳阳
  • 专门做免费东西试吃的网站我想做电商怎么加入
  • 廊坊网站建设招聘代运营公司可靠吗
  • 做一手房用什么网站seo百度百科
  • 做一个app需要什么技术广州seo快速排名
  • 做螺杆比较出名的网站百度百度一下
  • 做日本暖暖小视频网站欧美网站建设
  • 做网站开发公司电话seo推广排名软件
  • wordpress慢死了手机优化大师下载
  • wordpress首页轮换图片在哪里设置惠州百度seo哪里强
  • web创建一个简单的查询网站seo网站地图
  • wordpress难度指数在seo优化中
  • 建站公司经营免费发布推广信息的b2b
  • php网站开发实例教程第七章爱站网 关键词挖掘工具站
  • 巩义网站推广郑州网络优化实力乐云seo
  • html做网站公告网络建站平台
  • 全国做网站找哪家好廊坊百度快照优化排名
  • 国外网站怎么做seo排名优化软件有
  • 做网站工作职责百度关键词搜索引擎
  • 网站建设公司需要icp证星链seo管理
  • 衡阳手机网站设计云南百度推广开户
  • 网站建设制作专业开发定制百度官方客服电话
  • 河北网站建设联系电话天津百度搜索排名优化
  • 蓬莱建设局规划处网站快速百度
  • 做网站需要什么资料google怎么推广
  • 做网站有一行一行写代码的吗优秀的软文