首页 文章

如何在Unity Panorama街景中移动相机?

提问于
浏览
0

↪️我想在app中嵌入街景,所以我创建了一个新项目


enter image description here


↪️从资产商店添加街景到Skybox


enter image description here

enter image description here

enter image description here


↪️从谷歌 Map 到Skybox的街景视图


enter image description here

enter image description here


↪️在场景中拖动并垂下天空盒子


enter image description here


↪️我如何移动相机以响应触摸和鼠标时刻,如本例中的全景图


↪️

  1. Unit 3d documentation

  2. Unity Touch Swipe Camera Rotation - Touch FPS Controller

  3. Street View Convert

  4. Street view converter unity 3D panorama

  5. Unity3D Tutorial: How to make Skybox 360 single texture

1 回答

  • 2

    我会做以下事情:

    • 创建一个名为"RotorY"的空GameObject,它将负责y相机的旋转(环顾四周) .

    • 创建一个空的GameObject "RotorX"作为"RotorY"的子项 . 这个将控制x旋转(向上和向下看)

    • 让相机成为RotorX的孩子 . (还要确保RotorX和Camera在本地空间中有(0,0,0)个位置)

    • this script添加到任何gameObject并将rotorY和rotorX分配给插槽(在试验时我最终编写了这个脚本,lol)

    编辑2017年1月:在代码中添加了2行,使其与unity 5.5一起使用

相关问题