Comments (3)
Hi there,
As per the readme I threw this together really quickly, so the implementation details aren't that great. Crouch is indeed very rough. If you want to make improvements to the crouch and submit a pull request I'd be happy to review it and add it.
Thanks,
Luke
from inputsystemfirstpersoncharacter.
Pull request was beyond scope of this request, rewriting all code in repo. Please feel free to use your own controller implementation in your own repo. A simple improved crouch integrated into existing code would have been preferred. I may revisit crouch when I have time and implement it in a way sympathetic to the existing code and ethos of this repo, based in single file implementation with a focus on simplicity, hackability, and as a learning resource for others struggling with input system controllers. For now I'll close this.
from inputsystemfirstpersoncharacter.
If that's the point, this line should work for a smooth crouch:
controller.center = new Vector3(0, controller.height/2, 0)
I haven't tested it but it should work just fine.
Goodbye.
from inputsystemfirstpersoncharacter.
Related Issues (2)
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 inputsystemfirstpersoncharacter.