Character controller capsule height changing

JaZzBrE
Posts: 8
Joined: Tue Jun 02, 2009 5:52 am

Character controller capsule height changing

Post by JaZzBrE »

Hello,
I'm trying to change the height of the capsule in run-time for stuff like crouching etc, but couldn't find a function that would do that.
The closest thing it kind of worked was the SetLocalScaling, but I suppose that's not really meant for that.

So the question is, could I just add a function to the btCapsuleShape that would let me do that or what?

Thanks
-Ales Mlakar
Zootfly
JaZzBrE
Posts: 8
Joined: Tue Jun 02, 2009 5:52 am

Re: Character controller capsule height changing

Post by JaZzBrE »

Well after some searching I found that probably the best way to do this is to create a compound object with two or more cylinder/spheres and just move them up and down to get the required height.

Would this work?