我使用Three.js渲染和移动(我的orbitControl更改camera.position)在一个小场景中.
现在我有一个眼裂谷.所以我添加了VRControls和VREffect.
移动头部没有问题.
但我不能再在场景中移动,因为VRControls会覆盖相机参数:
object.quaternion.copy( state.orientation ); // object is the camera
Run Code Online (Sandbox Code Playgroud)
我认为这很容易纠正:我只需要更新相机而不是覆盖它:
object.quaternion.copy(stateOrientationQuat.multiply(currentCameraQuat));
Run Code Online (Sandbox Code Playgroud)
但它不起作用:它呈现移动的轻弹场景.VRControls和orbitControl好像在战斗......
你能告诉我如何将VRControls集成到现有项目中吗?如果您有更新代码(我真的不知道四元数......),那将非常有帮助.
谢谢
我无法使用 tortoisegit 进行克隆或获取。输出窗口给出了这些错误:
error: cannot spawn sh: No such file or directory
fatal: unable to fork
git did not exit cleanly (exit code 128)
Run Code Online (Sandbox Code Playgroud)
但是如果我运行输出窗口中显示的 git 命令行,它运行良好。
那么问题似乎出在乌龟的配置上?
一些信息:
你知道问题出在哪里吗?或者你知道如何清理 tortoisegit 的存储配置?
谢谢你的帮助。
[编辑]
我刚刚更改了 tortoise 设置中的 git.exe 路径(settings/general/git.exe 路径)。它设置为C:\Program Files\Git\bin\libexec\git-core。我将其更改为C:\Program Files\Git\bin。
它再次起作用。git.exe 有 4 个目录: