React Three Fiber FPS Controls for mobile and desktop. Joystick for mobile, Keyboard for desktop
react-three-fpscontrols
React Three Fiber FPS Controls for mobile and desktop.
Based on https://codepen.io/ogames/pen/rNmYpdo
For example: https://codesandbox.io/s/demo-react-three-fpscontrols-rhfew3
Install
# install peerdeps
npm i react three @react-three/fiber @react-three/drei
# install fpscontrols
npm i react-three-fpscontrols
Use
You can copy the snippet from codesandbox, it’s up-to-date there
License
MIT