btKinematicCharacter Jumping

Post Reply
Random#9001
Posts: 10
Joined: Mon Mar 16, 2015 12:59 pm

btKinematicCharacter Jumping

Post 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?
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: btKinematicCharacter Jumping

Post 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.
glebedev
Posts: 1
Joined: Wed Nov 04, 2020 11:37 pm

Re: btKinematicCharacter Jumping

Post 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 :(
Post Reply