btCompoundShape and scale

User avatar
cort
Posts: 6
Joined: Sun Mar 02, 2008 9:06 pm

btCompoundShape and scale

Post by cort »

Hello -- is it possible to apply scale to a btCompoundShape? Non-uniform scale, ideally. I tried calling setLocalScaling(), but it didn't seem to have any effect.

Thanks,
- cort
User avatar
cort
Posts: 6
Joined: Sun Mar 02, 2008 9:06 pm

Re: btCompoundShape and scale

Post by cort »

Ack -- a bit of post-post Googling turned up this patch, which seems to indicate that this is a known bug which isn't fixed as of today's 2.75 release. Is that accurate?
ole.k
Posts: 17
Joined: Thu Jun 12, 2008 1:32 pm

Re: btCompoundShape and scale

Post by ole.k »

That patch is OK as long as you do not re-use the child shapes of the compound shape at another place (e.g., as child shapes of another compound shape). I implemented another solution which allows uniform scaling of compound shapes without changing the children. The child shapes have to be either convex shapes or compound shapes. I'll upload that patch to the Google issue tracker today.
ole.k
Posts: 17
Joined: Thu Jun 12, 2008 1:32 pm

Re: btCompoundShape and scale

Post by ole.k »