标签:vr leap motion unity api 翻译
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坐标系。
const float INPUT_SCALE float常量 输入缩放比例
Scale factor from Leap units (millimeters) to Unity units (meters).
从Leap(单位:毫米)到Unity(单位:米)的缩放系数。
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向量的对象转换。
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四元数旋转和位移。
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轴翻转。
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坐标系中的上方。
————————————————————————————————————————————
(版权声明:本篇为Leap Motion 官网文档译文,版权归Leap Motion 官网所有,图文内容仅供学习使用。)
【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
标签:vr leap motion unity api 翻译
原文地址:http://blog.csdn.net/duzixi/article/details/47611029