SteamVR+HTC VIVE开发之旅 Playe组件解析

1.交互系统的核心是Player,Hand和Interactable类。提供的Player预制件为场景设置了播放器对象和SteamVR摄像机。交互系统通过向与之交互的任何对象发送消息来工作。然后,这些对象会对消息做出反应,并且可以根据需要将其自身附加到手上。
SteamVR+HTC VIVE开发之旅 Playe组件解析_第1张图片
TrackingOriginTransform: Virtual transform corresponding to the meatspace tracking origin. Devices are tracked relative to this
对应于实体空间跟踪原点的虚拟变换。设备与此相关

HmdTransforms: List of possible transforms for the head/HMD, including the no-SteamVR fallback camera
这将始终返回当前摄像机的变换。这可能是VR摄像机或2D后备摄像头

Hands: List of possible Hands, including no-SteamVR fallback Hands
可能是存储所有Hand的集合,包括非SteamVR的备用手

HeadCollider: Reference to the physics collider that follows the player’s HMD position
参考物理碰撞器跟随玩家的HMD位置

RigSteamVR: These objects are enabled when SteamVR is available
这些对象在SteamVR可用时启用

Rig2DFallback: These objects are enabled when SteamVR is not available, or when the user toggles out of VR
这些对象在SteamVR不可用时启用,或者当用户切换离开VR时启用

AudioListener: The audio listener for this player
Player组件的音频监听器

HeadsetOnHead: This action lets you know when the player has placed the headset on their head
这个动作让你知道玩家什么时候把耳机戴在了头上

AllowToggleTo2D: 是否开启2D模式

你可能感兴趣的:(SteamVR+HTC VIVE开发之旅 Playe组件解析)