Git Product home page Git Product logo

Comments (2)

aidinzolghadr avatar aidinzolghadr commented on September 24, 2024

Did you solve it? I'm facing the same problem.

from charactercontroller2d.

Chaoseiro avatar Chaoseiro commented on September 24, 2024

So, In line 474, there's a "Magic Number" (a TODO) in the check for the deltaMovement.y, that's currently set to 0.07f. In my settings, letting it as 0.05 solved this issue.
I believe this number needs jump-related variables in order to be calculated, so maybe there should be a "jump initializer" where we feed variables like jump height, minimum jump height etc and the code calculates this number, or maybe a built-in jump function?

Edit:
Although the character is able to jump going up a slope now, this change generated a by-product. On slopes higher than 30ΒΊ, given my jump speed, the character seems to trigger a collision with the slope ground that translates him abruptly to the side...

from charactercontroller2d.

Related Issues (20)

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.