【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
来源:互联网 发布:spsss软件如何安装 编辑:程序博客网 时间:2024/05/16 00:46
前言
LeapUnityExtensions LeapUnity扩展
class Leap:UnityVectorExtension Leap类(继承UnityVectorExtension)
Extends the Leap Motion Vector class to converting points and directions from the Leap Motion coordinate system into the Unity coordinate system.
继承Leap Motion Vector类来将点和方向从LeapMotion坐标系转换到Unity坐标系。
Public Members 公共变量
const float INPUT_SCALE float常量 输入缩放比例
Scale factor from Leap units (millimeters) to Unity units (meters).
从Leap(单位:毫米)到Unity(单位:米)的缩放系数。
Public Static Functions 全局静态方法
Vector3 ToUnity(this Vector leap_vector, bool mirror = false) 转换至Unity模式
Converts a direction vector from Leap to Unity.
将一个方向向量从Leap模式转换到Unity模式。
(Does not scale.)
(不缩放。)
Changes from the Leap Motion right-hand coordinate convention to the Unity left-handed convention by negating the z-coordinate.
通过忽略Z轴的方式将LeapMotion的右手坐标系变为Unity的左手坐标系。
Parameters 参数
• mirror - If true, the vector is reflected along the z axis. 镜像:如果是true,则向量沿Z轴翻转。
• leap_vector - the Leap.Vector object to convert. Leap向量: Leap向量的对象转换。
Vector3 ToUnityScaled(this Vector leap_vector, bool mirror = false) 转换至Unity模式并进行缩放
Converts a point from Leap to Unity.
将一个点从Leap模式转换至Unity模式。
(Scales.)
(保留缩放。)
Changes from the Leap Motion right-hand coordinate convention to the Unity left-handed convention by negating the z-coordinate. Also scales from Leap Motion millimeter units to Unity meter units by multiplying the vector by .001.
通过忽略Z轴的方式将LeapMotion的右手坐标系变为Unity的左手坐标系。通过向量乘0.001的方式将LeapMotion的毫米单位转换为Unity的米单位。
Parameters 参数
• mirror - If true, the vector is reflected along the z axis.镜像:如果是true,则向量沿Z轴翻转。
• leap_vector - the Leap.Vector object to convert.Leap向量: Leap向量的对象转换。
Public Static Attributes 全局静态属性
readonly Vector3 Z_FLIP Vector3 只读属性 Z翻转轴
Constant used when converting from right-handed to left-handed axes.
从右手转换到左手时不变的轴
class Leap::UnityMatrixExtension Leap类(继承UnityMatrixExtension)
Extends the Leap Mition Matrix class to convert Leap Matrix objects to to Unity Quaternion rotations and translations.
继承Leap Mition Matrix类将Leap矩阵对象装换成Unity四元数旋转和位移。
Public Static Functions 全局静态方法
Quaternion Rotation(this Matrix matrix, bool mirror = false) 旋转
Converts a Leap Matrix object representing a rotation to a Unity Quaternion.
将一个代表角度的Leap矩阵对象转换成Unity四元数。
Parameters 参数
• matrix - The Leap.Matrix to convert. 矩阵:Leap矩阵转换
• mirror - If true, the operation is reflected along the z axis.镜像:如果是true,则向量沿Z轴翻转。
Vector3 Translation(this Matrix matrix, bool mirror = false) 位移
Converts a Leap Matrix object representing a translation to a Unity Vector3 object.
将一个代表位移的Leap矩阵对象转换成Unity向量对象。
Parameters 参数
• matrix - The Leap.Matrix to convert.矩阵:Leap矩阵转换
• mirror - If true, the operation is reflected along the z axis.镜像:如果是true,则向量沿Z轴翻转。
Public Static Attributes 全局静态属性
readonly Vector LEAP_FORWARD 只读属性 Vector Leap前方
Forward in the Leap coordinate system.
在Leap坐标系中的前方。
readonly Vector LEAP_ORIGIN 只读属性 Vector Leap原点
The origin point in the Leap coordinate system.
在Leap坐标系中的原点。
readonly Vector LEAP_UP 只读属性 Vector Leap上方
Up in the Leap coordinate system.
在Leap坐标系中的上方。
————————————————————————————————————————————
更多参考:
【VR】Leap Motion 官网文档 脚本参考(目录)
(版权声明:本篇为Leap Motion 官网文档译文,版权归Leap Motion 官网所有,图文内容仅供学习使用。)
- 【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
- 【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
- 【VR】Leap Motion 官网文档 LeapRecorder (Leap记录器)
- 【VR】Leap Motion 官网文档 LeapRecorder (Leap记录器)
- 【VR】Leap Motion 官网文档 FingerModel (手指模型)
- 【VR】Leap Motion 官网文档 ToolModel (工具模型)
- 【VR】Leap Motion 官网文档 ToolModel (工具模型)
- 【VR】Leap Motion 官网文档 Unity资源与插件
- 【VR】Leap Motion 官网文档 Unity插件概述
- 【VR】Leap Motion 官网文档 手型资源
- 【VR】Leap Motion 官网文档 HandController(手部控制器)
- 【VR】Leap Motion 官网文档 HandModel(手部模型)
- 【VR】Leap Motion 官网文档 ConfidenceTransparency (确定性透明处理)
- 【VR】Leap Motion 官网文档 ConfidenceTransparency (确定性透明处理)
- 【VR】Leap Motion 官网文档 DisconnectionNotice (未连接通知)
- 【VR】Leap Motion 官网文档 DisconnectionNotice (未连接通知)
- 【VR】Leap Motion 官网文档 MagneticPinch (磁性捏取)
- 【VR】Leap Motion 官网文档 MagneticPinch (磁性捏取)
- 带百度地图apk 签名打包后 地图key验证失败
- hadoop jar运行hbase相关jar包的classpath问题
- http://www.pan1234.com/result.jsp?wp=0&op=0&ty=gn&q=java面向对象编程
- 在 scala 中 实现 一个方便序列化的 enumeration 类
- 数据库备份与恢复:数据量大的库怎么考虑设计备份策略?
- 【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
- 将linux程序或者脚本的后台运行
- 4 - 09. 笛卡尔树(25)
- 简单工厂模式
- Kindle所不为人知的一面
- Xcode/iphone 此证书是由未知颁发机构签名的
- 在Linux上搭建XMPP服务器
- servlet学习笔记8——ServletContext的讲解和使用
- form提交页设置编码类型,使其数据无乱码 gbk utf-8 转