UnityAPI翻译——InputTracking

来源:互联网 发布:js点击图片放大预览 编辑:程序博客网 时间:2024/06/14 02:44

最近开始搞虚拟现实了,先翻译了unity的官方的相关API,有错误的地方,希望大家多多指教。


InputTracking

输入跟踪

class in UnityEngine.VR
命名空间UnityEngine.VR下面的类
 


Description
描述
VR Input tracking data.
跟踪VR设备输入数据
Static Functions
静态方法

GetLocalPosition
获取本地坐标
The current position of the requested VRNode.
所需节点的当前坐标
GetLocalRotation
获取本地旋转
The current rotation of the requested VRNode.
所需节点的当前旋转四维数
Recenter
聚焦
Center tracking on the current pose.
聚焦到当前状态的中心点

InputTracking.GetLocalPosition

输入跟踪类中的方法GetLocalPosition()
public staticVector3GetLocalPosition(VR.VRNodenode);
静态方法,传入参数VR节点,返回三维坐标
Parameters
参数
node
节点
Node index.
节点下标
Returns
返回
Vector3 Position of node local to its tracking space.
根据跟踪位置返回节点的本地三维坐标
Description
描述
The current position of the requested VRNode.
所需节点的当前坐标
InputTracking.GetLocalRotation

输入跟踪类中的GetLocalRotation()方法
public static Quaternion GetLocalRotation(VR.VRNodenode);
静态方法,参数为VR节点,返回旋转四维数
Parameters
参数
node
节点
Node index.
节点下标
Returns
返回
Quaternion Rotation of node local to its tracking space.
跟踪位置节点的本地旋转四维数
Description
描述
The current rotation of the requested VRNode.
所需VR节点的本地旋转
InputTracking.Recenter

输入跟踪类的聚焦Recenter()方法
public static voidRecenter();
静态方法,无参,无返回值
Description
描述
Center tracking on the current pose.
聚焦到当前状态的中心点

0 0
原创粉丝点击