Page 1 of 1

btKinematicCharacter Jumping

Posted: Sat Apr 04, 2015 4:08 pm
by Random#9001
Using the character class I find a problem in the fact that when I just do

Code: Select all

character->jump();
My character will hit a ceiling, but the jump will continue to push against the ceiling until it would normally fall back down. So what I end up with is a character that jumps, floats magically pushing against a ceiling and then falls back down. How do I add something to detect a ceiling and make the character fall?

Re: btKinematicCharacter Jumping

Posted: Sun Apr 05, 2015 2:29 am
by drleviathan
That is a bug in the btKinematicCharacterController, which should have been Demo code rather than put in the library. Best practice is to copy the btKinematicCharacterController implementation into your own project and then modify it heavily to suit your own needs.

That said (IANAL), the btKinematicCharacterController code is protected by a zlib style license which might be a problem for you, depending on what you're working on.

Re: btKinematicCharacter Jumping

Posted: Wed Nov 04, 2020 11:44 pm
by glebedev
Random#9001 wrote: Sat Apr 04, 2015 4:08 pm a character that jumps, floats magically pushing against a ceiling and then falls back down
Did you find a solution to the issue? It is still present in default Bullet implementation of the controller :(