Skip to content
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

Rotation Point #234

Open
abrichr opened this issue May 8, 2021 · 1 comment
Open

Rotation Point #234

abrichr opened this issue May 8, 2021 · 1 comment

Comments

@abrichr
Copy link

abrichr commented May 8, 2021

Hello,

Thank you for open sourcing such excellent software! I have a few questions:

  • Is it possible to set the altitude of the camera? If the answer is no, can you please suggest how one might go about implementing this type of functionality? I imagine it might have something to do wtih this.viewMatrix:

    this.viewMatrix = new GLX.Matrix()

    It looks like GLX.Matrix implements translateTo() which takes a z parameter:
    translateTo (x, y, z) {

    Am I on the right track?

  • Is it possible to set the rotation point of the camera somewhere other than the target point? I imagine one way to implement this might involve translating the target point to the rotation point, rotating, and then translating back. Is it possible to execute these operations without redrawing? If not, I imagine View.renderFrame() might be the right place to start implementing this:

    requestAnimationFrame(() => {

Any suggestions would be appreciated!

@kinqert
Copy link

kinqert commented May 8, 2021

I'm looking for this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants