In our new game, we have built a "tentacle" out of rigid boxes attached using a mixture of revolute and prismatic joints. We then IK it for motion. This works beautifully.
But objects may pass through the gaps created by the telescoping prismatic joints. I'd like to add some sort of filler in to the gap.
I had thought that I might add another shape to Box2D. It would be just a simple line, but with the ability to update its length. I know that Box2D doesn't support any dynamically resizable shapes currently. And I understand that the acceleration structures are really optimized for non-deformable rigid bodies. But, it looks like it should be possible if I'm okay rebuilding the bounding box constantly--or if the bounding box covered the maximum "extended" length, but narrow phase used the current dynamic length.
Is there some show-stopping element of Box2D that I have overlooked, but that is assuredly going to make this impossible? Have people tried such a thing and failed?
But objects may pass through the gaps created by the telescoping prismatic joints. I'd like to add some sort of filler in to the gap.
I had thought that I might add another shape to Box2D. It would be just a simple line, but with the ability to update its length. I know that Box2D doesn't support any dynamically resizable shapes currently. And I understand that the acceleration structures are really optimized for non-deformable rigid bodies. But, it looks like it should be possible if I'm okay rebuilding the bounding box constantly--or if the bounding box covered the maximum "extended" length, but narrow phase used the current dynamic length.
Is there some show-stopping element of Box2D that I have overlooked, but that is assuredly going to make this impossible? Have people tried such a thing and failed?