Scaled collision shapes

Post Reply
tksuoran@gmail.com
Posts: 3
Joined: Fri May 21, 2021 12:59 pm

Scaled collision shapes

Post by tksuoran@gmail.com »

It seems that in order to reuse a collision shape in multiple rigid bodies, they all must use the same scaling, because scaling is in collision shape and not in rigid body. Would it work to have collision shape scaling in rigid body instead? That would allow using same collision shape in scaled rigid bodies.
tksuoran@gmail.com
Posts: 3
Joined: Fri May 21, 2021 12:59 pm

Re: Scaled collision shapes

Post by tksuoran@gmail.com »

I used btUniformScalingShape to wrap btConvexShape collision shapes, which adds ability to create scaled versions of them. For more other collision shapes I create new copies for each unique scale.
Post Reply