Problem with Kinematic Character Controller on some slopes

Post Reply
Athos06
Posts: 7
Joined: Tue Apr 15, 2014 8:39 pm

Problem with Kinematic Character Controller on some slopes

Post by Athos06 »

Something odd is happening to my character controller. I have 2 slopes, one of them is a collision shape a made from a trimesh (just a imported cube scaled in this case, it was only test) and the other one is a boxShape from bullet, rotated 30 degrees.
The thing is when the character is on the trimesh one it works fine, but when the char is on the rotated boxShape my character slides dows the slope.. The angle is just fine not a problem of the MaxSlope. Also im using a boxShape for my character convexShape instead of the capsule for design reasons, and because the capsule didnt work anyway, but the thing is when I try with a capsule it doesnt slide (I cant change to capsule instead because as I said is not working correctly)

here is the video of what happens. The red slope is the trimesh and the black one the rotated boxShape

https://www.youtube.com/watch?v=h0UxXIb ... e=youtu.be

I ve tried this solution: http://www.bulletphysics.org/Bullet/php ... f=9&t=6773
And also changing the allowedCcdPenetration to 0.00001f, neither of them worked.

Any ideas or solutions?

Thanks guys
Athos06
Posts: 7
Joined: Tue Apr 15, 2014 8:39 pm

Re: Problem with Kinematic Character Controller on some slop

Post by Athos06 »

I cant still figure out why this is happening, I dont understand the code of the characterController so its almost impossible for me to fix that, I can only think there is some problem with the detection of the collision with the boxShape, maybe it only detects triangles properly or something like that but not a clue.

Any ideas about this? Should I post an Issue about it?
Post Reply