GithubHelp home page GithubHelp logo

Comments (2)

ID-Emmett avatar ID-Emmett commented on June 2, 2024

我看了下源码,在FlyCameraController组件中,通过setCamera设置的targetPoslookAtPos在初始化时通过lookAt指定了相机位置和朝向,在此后,可以通过按键F手动更新。

但朝向设置可能有点问题,因为朝向更新是根据鼠标指针设置相机欧拉角旋转,通过按键F手动更新相机位置和朝向时,如果在这之前鼠标指针修改了欧拉角旋转,那么相机的欧拉角旋转会与lookAt设置的四元数旋转产生冲突,在这里的优先级为欧拉角,所以手动更新后,相机的朝向可能不会改变。

from orillusion.

OriIIusion avatar OriIIusion commented on June 2, 2024

感谢大佬解释!

from orillusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.