-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: FlyCameraController在初始化后setCamera不生效 #362
Labels
bug
Something isn't working
Comments
我看了下源码,在 但朝向设置可能有点问题,因为朝向更新是根据鼠标指针设置相机欧拉角旋转,通过按键 |
感谢大佬解释! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug描述
想通过dat.gui按钮来设置一下FlyCameraController.setCamera(),发现不起作用。
刚创建相机时 调用FlyCameraController.setCamera()可以生效,使用dat.gui按钮就不生效了。
但是HoverCameraController却可以在dat.gui中setCamera。
Bug复现流程
通过以下步骤产生bug:
期待的结果
希望fly相机可以和hover相机一样跳转镜头
代码示例
https://codepen.io/OriIIusion/pen/MWxOeVJ
其他信息
fly相机点击5个按钮后,可以在控制台看到FlyCameraController.targetPos和FlyCameraController.lookAtPos已经改变,但是相机本身的position和rotation却不改变
The text was updated successfully, but these errors were encountered: