@martinpham/react-360-mouse-lock-camera-controller

1.0.5 • Public • Published

@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

Chess world

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));

Package Sidebar

Install

npm i @martinpham/react-360-mouse-lock-camera-controller

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

7.34 MB

Total Files

21

Last publish

Collaborators

  • martinpham