1.0.5 • Published 7 years ago

@martinpham/react-360-mouse-lock-camera-controller v1.0.5

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
7 years ago

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

7 years ago