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

KeyboardControls not working in Nuxt 3.11.2 #403

Closed
5 tasks done
JakobHock opened this issue May 5, 2024 · 4 comments
Closed
5 tasks done

KeyboardControls not working in Nuxt 3.11.2 #403

JakobHock opened this issue May 5, 2024 · 4 comments

Comments

@JakobHock
Copy link

Describe the bug

KeyboardControls as per documentation are currently not working with Nuxt 3.11.2.

Reproduction

https://stackblitz.com/edit/nuxt-starter-cpvwvw?file=app.vue

Steps to reproduce

  1. Click on canvas
  2. Try to move
  3. Camera not moving

System Info

OS: Windows 10 10.0.19045
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
    Memory: 2.31 GB / 15.95 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Chrome: 124.0.6367.119
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    @tresjs/cientos: ^3.8.0 => 3.8.0
    @tresjs/nuxt: ^2.1.1 => 2.1.1

Used Package Manager

pnpm

Code of Conduct

Copy link

stackblitz bot commented May 5, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@JaimeTorrealba
Copy link
Member

This is weird, but in the V4 of cientos (soon) the KeyboardControls will be modified, and comes with breaking changes.

Maybe try this instead: https://github.com/JaimeTorrealba/tres-fps-controls

@JakobHock
Copy link
Author

Thank you very much.
I will take a look at it 👍

@janvorisek
Copy link

CameraControls don't work in the same way. The are added with no error, accessible using ref, yet no action on mousewheel/drag.

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

3 participants