pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.36k stars 699 forks source link

PointerLock (Controls) #1314

Open OldManMeta opened 1 year ago

OldManMeta commented 1 year ago

"dependencies": { "@emotion/react": "11.10.4", "@emotion/styled": "11.10.4", "@mui/icons-material": "5.10.3", "@mui/material": "5.10.3", "@react-spring/web": "^9.6.1", "@react-three/cannon": "^6.5.2", "@react-three/drei": "^9.56.26", "@react-three/fiber": "^8.9.1", "@types/react": "18.0.18", "@types/react-dom": "18.0.6", "@types/three": "^0.146.0", "leva": "0.9.34", "react": "^18.2.0", "react-dom": "^18.2.0", "rxjs": "7.5.6", "react-hot-loader": "^4.13.1", "three": "^0.147.0" }, "devDependencies": { "css-loader": "^6.7.1", "file-loader": "^6.2.0", "filemanager-webpack-plugin": "^7.0.0", "html-webpack-plugin": "^5.5.0", "source-map-loader": "^3.0.1", "ts-loader": "^9.2.8", "typescript": "^4.6.3", "webpack": "^5.71.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.11.1" }

Problem description:

Error showing:

Type '{}' is missing the following properties from type 'Pick<PointerLockControlsProps, "camera" | "children" | "up" | "position" | "rotation" | "quaternion" | "scale" | "matrix" | "layers" | "attach" | "addEventListener" | ... 26 more ... | "onUnlock">': pointerSpeed, getObjectts(2739)

Relevant code:

Not sure there is much to say here... it's imported and then placed inside the canvas:

`<Canvas shadows camera={{ fov: 50 }}>

          <RenderController />

          <Grid position={[0, -0.01, 0]} args={gridSize} {...gridConfig} />
          <PointerLockControls />
        </Canvas>

`

Suggested solution:

My only current solution is to import the entire file from source.

github-actions[bot] commented 6 days ago

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!