@martinpham/react-360-mouse-lock-camera-controller
v1.0.5
Published
Provide Pointer Lock Camera Controller for your React 360 project. Now you can rotate camera inside 3D world freely using your mouse moves.
Downloads
5
Maintainers
Readme
@martinpham/react-360-mouse-lock-camera-controller
Provide Pointer Lock Camera Controller for your React 360 project. Now you can rotate camera inside 3D world freely using your mouse moves.
Demo
Installing
yarn add @martinpham/react-360-mouse-lock-camera-controller
Integrating
import MouseLockCameraController from '@martinpham/react-360-mouse-lock-camera-controller';
...
r360.controls.addCameraController(new MouseLockCameraController(r360._eventLayer));