向下滚动时,如何在Y轴周围旋转?
我正在使用three.js来制作3D前端,并且在构造基本布局并添加了一些测试几何后,我想测试相机如何旋转,并且无法弄清楚如何完全使其完全围绕y轴旋转。向上/向下滚动。我正在使用香草JS。如果有人有关于如何处理此问题的提示,请感谢。
I am using Three.js to make a 3D frontend and after constructing the basic layout and added some test geometry I want to test how the camera rotates and can't figure out how exactly to make it rotate around the Y axis solely when trying to scroll up/down. I am using Vanilla JS. If anyone has any tips on how to approach this, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用此简化的实时演示作为代码模板:
Use this simplified live demo as a code template: