Hello everyone!
First: Thanks for this wonderful library. It was set up very quickly, compiled just fine and is very well documented!
Now on to my issue: I built a tentacle by connecting a series of boxes by revolute joints. It works nicely, no problems so far. I added some Inverse Kinematics to have the tentacle fulfill requests such as "drag me there" or "slap that point with that speed". For that I repeatedly ApplyAngularImplse() on all tentacle segment bodies, which also works fine.
For your viewing pleasure and to gain maximum attention for my issue: this is what it currently looks like. Beware: Programmer's art.

tentakel.jpg [ 95.2 KiB | Viewed 249 times ]
The actual problem is now: I want the tentacle to stretch a bit on occasion. The b2RevoluteJoint allows no softness, so I thought I could switch to the b2WheelJoint. But the wheel joint does not support angular limits, which I require to maintain a consistent appearance of the tentacle. The other option would be to add a blind body between every pair of segments so that I can put both a prismatic joint with a spring and a revolute joint, but this will render the collision detection a mess.
What method / joints do you suggest to use if I want to allow a bit of stretching for chains of bodies connected by revolute joints? I appreciate any advise or hint on this topic.
First: Thanks for this wonderful library. It was set up very quickly, compiled just fine and is very well documented!
Now on to my issue: I built a tentacle by connecting a series of boxes by revolute joints. It works nicely, no problems so far. I added some Inverse Kinematics to have the tentacle fulfill requests such as "drag me there" or "slap that point with that speed". For that I repeatedly ApplyAngularImplse() on all tentacle segment bodies, which also works fine.
For your viewing pleasure and to gain maximum attention for my issue: this is what it currently looks like. Beware: Programmer's art.
Attachment:
tentakel.jpg [ 95.2 KiB | Viewed 249 times ]
The actual problem is now: I want the tentacle to stretch a bit on occasion. The b2RevoluteJoint allows no softness, so I thought I could switch to the b2WheelJoint. But the wheel joint does not support angular limits, which I require to maintain a consistent appearance of the tentacle. The other option would be to add a blind body between every pair of segments so that I can put both a prismatic joint with a spring and a revolute joint, but this will render the collision detection a mess.
What method / joints do you suggest to use if I want to allow a bit of stretching for chains of bodies connected by revolute joints? I appreciate any advise or hint on this topic.