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

Pointerlock + Keyboard doesn't respect initial Camera position #117

Closed
5 tasks done
alvarosabu opened this issue Jul 3, 2023 · 0 comments · Fixed by #119
Closed
5 tasks done

Pointerlock + Keyboard doesn't respect initial Camera position #117

alvarosabu opened this issue Jul 3, 2023 · 0 comments · Fixed by #119
Assignees
Labels
bug Something isn't working

Comments

@alvarosabu
Copy link
Member

Describe the bug

Pointerlock + Keyboard is not respecting the initial camera position

Transition between initial camera position and pointerlock should be seamless

Screen.Recording.2023-07-03.at.08.52.50.mov

Reproduction

https://stackblitz.com/edit/stackblitz-starters-wdhefd?description=Quick%20start%20repo%20for%20Tres.js%20projects&file=package.json,src%2Fcomponents%2FTheExperience.vue&title=TresJS

Steps to reproduce

  1. Click on canvas
  2. See how the initial position of the Pointerlock differs from initial camera
  3. Walk and jump
  4. The camera goes under the grid (floor).

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.3 - /usr/local/bin/pnpm
  npmPackages:
    @tresjs/cientos: 2.2.0 => 2.2.0 
    @tresjs/core: 2.4.0 => 2.4.0 
    vite: ^4.3.9 => 4.3.9

Used Package Manager

pnpm

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants