Character Controller falls through the ground when maxslope

Post Reply
SteveDeFacto
Posts: 31
Joined: Sat Jul 23, 2011 4:24 pm

Character Controller falls through the ground when maxslope

Post 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?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Character Controller falls through the ground when maxsl

Post 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
SteveDeFacto
Posts: 31
Joined: Sat Jul 23, 2011 4:24 pm

Re: Character Controller falls through the ground when maxsl

Post 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.
dataexcess
Posts: 4
Joined: Wed Jan 11, 2023 7:40 pm

Re: Character Controller falls through the ground when maxslope

Post 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!
Post Reply