最近开始搞虚拟现实了,先翻译了unity的官方的相关API,有错误的地方,希望大家多多指教。
InputTracking
输入跟踪
class in UnityEngine.VR
命名空间UnityEngine.VR下面的类
Description
描述
VR Input tracking data.
跟踪VR设备输入数据
Static Functions
静态方法
获取本地坐标
|
The current position of the requested VRNode.
所需节点的当前坐标
|
获取本地旋转
|
The current rotation of the requested VRNode.
所需节点的当前旋转四维数
|
聚焦
|
Center tracking on the current pose.
聚焦到当前状态的中心点
|
Parameters
参数
node
节点
|
Node index.
节点下标
|
Returns
返回
Vector3 Position of node local to its tracking space.
根据跟踪位置返回节点的本地三维坐标
Description
描述
The current position of the requested VRNode.
所需节点的当前坐标
静态方法,参数为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.
聚焦到当前状态的中心点