Hello,
I have recently updated an old application that was using bullet 2.70 and now I have compiled it with 2.80
Everything seems to be working fine so far except for the compound objects. I'm getting weird behavior. For example just having a box falling to a static plane if I set it up as compound object it never collides. The same setup with the old version of bullet is working fine.
Any hints of where should I look to fix this problem?
Thanks
compound objects collisions problem
-
- Posts: 2
- Joined: Wed Mar 21, 2012 1:06 am
Re: compound objects collisions problem
I've fixed this issue, I'm posting the solution in case this is useful for someone else.
We were adding the objects to the compound shape and at the end calculating the centroid and updating the transform for each of the children.
On the old version of the library you had to do this just by modifying m_transform on each of the children. On the new version of the library there are more things involved and instead of just update the matrix you should call the btCompoundShape member method updateChildTransform.
We were adding the objects to the compound shape and at the end calculating the centroid and updating the transform for each of the children.
On the old version of the library you had to do this just by modifying m_transform on each of the children. On the new version of the library there are more things involved and instead of just update the matrix you should call the btCompoundShape member method updateChildTransform.