Giter VIP home page Giter VIP logo

Comments (3)

lukeskt avatar lukeskt commented on June 10, 2024

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.

lukeskt avatar lukeskt commented on June 10, 2024

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.

obscure021 avatar obscure021 commented on June 10, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.