Unity Pico Neo2 射线传送-锚点传送

XR Rig配置

1、添加【Teleportation Provider】组件
2、添加【Locomotion System】组件
3、将【Locomotion System】组件赋值给【Teleportation Provider】组件的System属性
4、将【XR Rig】组件赋值给【Locomotion System】组件的XR Rig属性


image.png
Plane配置

1、添加一个Plane,之后为其添加【Teleportation Anchor】组件
image.png

2、将XR Rig赋值给地面的【Teleportation Anchor】组件的Teleportation Provoder属性
image.png

锚点传送已经设置好了,可以在VR上预览一下。不过传送的位置,始终会在Plane的中心位置。

修改锚点位置

1、在Plane下添加一个空物体
image.png

2、将空物体赋值给Plane的【Teleportation Anchor】组件的Teleport Anchor Tranform属性
image.png

3、修改空物体的Positoin
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容