Character Controller falls through the ground when maxslope
-
- Posts: 31
- Joined: Sat Jul 23, 2011 4:24 pm
Character Controller falls through the ground when maxslope
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?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Character Controller falls through the ground when maxsl
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
If so, please attach your modified CharacterDemo.cpp to this thread.
Thanks,
Erwin
-
- Posts: 31
- Joined: Sat Jul 23, 2011 4:24 pm
Re: Character Controller falls through the ground when maxsl
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.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
-
- Posts: 4
- Joined: Wed Jan 11, 2023 7:40 pm
Re: Character Controller falls through the ground when maxslope
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!
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!