I've tried to use two different joints together without result. The two I want to combine are b2RevoluteJoint and b2PrismaticJoint.
The thing I want to create is a pad which should be able to rotate around its origin. But it should be limited (if wanted) like the b2RevoluteJoint is. Additionally, it should be able to move back and forth on a line, like with the b2PrismaticJoint. The last requirement is that one side of this joint should be static (not be able to move) and the other one dynamic.
I've tried the following combinations (and others) without successful results:
static <-b2PrismaticJoint-> dynamic <-b2RevoluteJoint-> dynamic (everything moves, not static anchor/base)
static <-b2PrismaticJoint-> kinematic <-b2RevoluteJoint-> dynamic (only rotation works)
static <-b2PrismaticJoint-> static <-b2RevoluteJoint-> dynamic (only rotation works)
static <-b2RevoluteJoint-> dynamic <-b2PrismaticJoint-> dynamic (everything moves, not static anchor/base)
static <-b2RevoluteJoint-> kinematic <-b2PrismaticJoint-> dynamic (only sliding works)
static <-b2RevoluteJoint-> static <-b2PrismaticJoint-> dynamic (only sliding works)
The image demonstrates the idea. Black is the dynamic body. Green is the span of the revolute joint. Blue is the span of the prismatic joint. And everything should be anchored to the ground (a static body)

newjoint.png [ 3.48 KiB | Viewed 378 times ]
How should I solve this? What should I use as "glue" between two joints? Or should I develop my own joint and commit to the project?
The thing I want to create is a pad which should be able to rotate around its origin. But it should be limited (if wanted) like the b2RevoluteJoint is. Additionally, it should be able to move back and forth on a line, like with the b2PrismaticJoint. The last requirement is that one side of this joint should be static (not be able to move) and the other one dynamic.
I've tried the following combinations (and others) without successful results:
static <-b2PrismaticJoint-> dynamic <-b2RevoluteJoint-> dynamic (everything moves, not static anchor/base)
static <-b2PrismaticJoint-> kinematic <-b2RevoluteJoint-> dynamic (only rotation works)
static <-b2PrismaticJoint-> static <-b2RevoluteJoint-> dynamic (only rotation works)
static <-b2RevoluteJoint-> dynamic <-b2PrismaticJoint-> dynamic (everything moves, not static anchor/base)
static <-b2RevoluteJoint-> kinematic <-b2PrismaticJoint-> dynamic (only sliding works)
static <-b2RevoluteJoint-> static <-b2PrismaticJoint-> dynamic (only sliding works)
The image demonstrates the idea. Black is the dynamic body. Green is the span of the revolute joint. Blue is the span of the prismatic joint. And everything should be anchored to the ground (a static body)
Attachment:
newjoint.png [ 3.48 KiB | Viewed 378 times ]
How should I solve this? What should I use as "glue" between two joints? Or should I develop my own joint and commit to the project?