Package Exports
- @martinpham/react-360-mouse-lock-camera-controller
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@martinpham/react-360-mouse-lock-camera-controller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-controllerIntegrating
import MouseLockCameraController from '@martinpham/react-360-mouse-lock-camera-controller';
...
r360.controls.addCameraController(new MouseLockCameraController(r360._eventLayer));