Page 1 of 1

Character Controller falls through the ground when maxslope

Posted: Tue Aug 02, 2011 8:09 pm
by SteveDeFacto
When my character controller hits terrain that is at maxslope instead of stopping it falls through the ground... Any idea what I'm doing wrong?

Re: Character Controller falls through the ground when maxsl

Posted: Wed Aug 03, 2011 2:31 pm
by Erwin Coumans
Can you recreate his in any of the Bullet demos, such as the Bullet/Demos/CharacterDemo?

If so, please attach your modified CharacterDemo.cpp to this thread.
Thanks,
Erwin

Re: Character Controller falls through the ground when maxsl

Posted: Wed Aug 03, 2011 7:19 pm
by SteveDeFacto
Erwin Coumans wrote:Can you recreate his in any of the Bullet demos, such as the Bullet/Demos/CharacterDemo?

If so, please attach your modified CharacterDemo.cpp to this thread.
Thanks,
Erwin
Hi, Erwin, I have found the problem which was primarily caused by my use of the onGround command. The function appears to be very primitive and it would greatly improve the utility of the function if it were to run a collision test instead of just checking the velocity. Additionally it should only return true if it is contacting a plane that is below it's max slope. As it is now I can't use the function and I will need to implement my own.

Re: Character Controller falls through the ground when maxslope

Posted: Sun Feb 19, 2023 2:46 pm
by dataexcess
I am having the same issue!

Could you please help me? How can we prevent the character controller to ever fall though the terrain?
My terrain is a quite complex and rough btBvhTriangleMeshShape.

Thank you!