Comments (4)
I think it should be better to have keyboard handling separately.
So I just added a new example for keyboard events, rather than as a part of the lib.
check to see below:
https://raw.githack.com/yomotsu/camera-controls/dev/examples/keyboard.html
from camera-controls.
@yomotsu Indeed this is probably better. Thanks for the example !
from camera-controls.
Would be nice to have some oneliner though. Maybe even as a separate package? I just think something like enableWASD(cameraControls)
would be really convenient.
But thank you for the example anyway π
from camera-controls.
Maybe even as a separate package?
Maybe..but it depends on the user.
- Someone may want WASD for movement
- Another guy may want arrow keys for movement
- Another may want arrow keys for rotation
- or might be num keys?
That's why I believe this would be done in user-landπ’
But thanks for your advice.
from camera-controls.
Related Issues (20)
- setLookAt doesn't trigger an update of the viewport attributes HOT 4
- Slow pinch-zoom when using orthographic camera HOT 7
- problem HOT 1
- Bug with setting interactiveArea top position. HOT 1
- Dolly behavior in first person mode is different when scrolling up and down HOT 1
- How to use CameraControls in react native HOT 2
- camera-controls does not export its types HOT 7
- Lerping min/max zoom set on Orthographic Camera HOT 1
- moveTo function in orthographic mode has inconsistent behaviour on mobile devices/ipad HOT 1
- Best coding pattern for onresize? HOT 1
- Pointer lock behaviour different ? HOT 1
- Speed up setLookAt or lerpLookAt HOT 5
- Invalid "main" entry in v2.8.x HOT 10
- Add focus function HOT 7
- Error 'ThreeCameraControls.install is not a function' HOT 2
- Method to cancel ongoing transitions HOT 5
- Mouse wheel zoom doesn't work with pressed Shift on Mac HOT 1
- The automated release is failing π¨ HOT 1
- Update three.js version to 162 HOT 2
- Not update in worker HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camera-controls.