vanruesc / spatial-controls Goto Github PK
View Code? Open in Web Editor NEW3D movement controls.
License: zlib License
3D movement controls.
License: zlib License
Is there a possibility disable Y axes angle direction? Character is flying when backward and going to deep when forward because pointer looks that direction.
Hello, do these controls have camera movement damping possibility like OrbitControls?
Thanks
Hi Vanruesc,
First to all, thanks for this helpful controls.
Now, I'm trying to implement this as a first person camera controls, but when I try to "walk" forward while I'm looking the down, the camera goes down and ends up getting inside the floor.
For example, in Cannon-es, we can apply something called "factor" to the "movement" as a vector3: LinearFactor
This concept applied to spatial, settings.translation.factor.set(1,0,1)
wich means the movement is blocked in Y axis... giving the effect I'm trying to reach. Is like 'Sensitivity' here but giving the option to be more especific.
Idk, this can be an improvement for Sensitivity.
Is that possible here?
Hello! Thanks for the best controls ever build in three.js world :)
I just found a thing that seems like a bug.
When I setting camera position and rotation before creating controls, everything seems to be fine. My camera in right place, look to the right place and I can control it with SpatialControls. To check this right behavior, just see the demo.
But when I change camera position and rotation after creating controls, camera position and rotation changes to default (0,0,0) and my camera teleports. To see this behavior, comment lines 27-28 and uncomment lines 32-33 in demo.
When I check controls position after setting camera's position, but before clicking on canvas and locking pointer, position in camera and controls is the same, but it changes to zeros right after I moving the mouse.
The demo link in README returns a 404.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.