threejs-3d-camera
v2.1.0
Published
A package that gives you a way to make a Three.js perspective camera that supports touch and pointer controls along with movement as well. WARNING: This is still in development
Downloads
5
Readme
threejs-3d-camera
About
This packages allows you to make a Three.js perspective camera with rotation or with both rotation and movement that supports both mouse and touch devices.
This is still in development, and you may experience bugs. If you find any bugs, please report them in the issues tab.
Features
- Binding to a DOM element
- Camera rotation/panning with touch and mouse locking
- Methods to move the camera
How to use
Go to this link
You can use this package with a CDN, such as jsDelivr or unpkg.
<head>
<!-- Using jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/threejs-3d-camera@latest"></script>
<!-- Using unpkg -->
<script src="https://unpkg.com/threejs-3d-camera@latest"></script>
</head>
Documentation
For code documentation, go to: https://5mdm.github.io/threejs-3d-camera/
Credits
- Three.js - The 3D library used
- 5MDM - The creator of this package
- DeltAndy123 - Keyboard and mouse support and TypeScript support