Hi everybody !
I decided to create another topic because the last was not appropriated.
I want to make a scrolling platform with box2D but I can't get it.
I'm trying with two bodies, one static and sensor and one normal which would be the platform.
And then I link them with a PrismaticJoint, with a motor and an axe parallel to the ground to make it scroll…
But, the fact is that, it doesn't work and moreover, my body just fall down as he shouldn't… It doesn't do anything but that…
So what can I do ? Could you help me please ?
Thanks a lot in advance ! 😀
edit : I finally made it scroll with an evoluting setSpeed each frame, but it still goes down… And I didn't find how to get the right length for the movement. I tried changing every parameter of the joint but it seems it doesn't change anything.
I decided to create another topic because the last was not appropriated.
I want to make a scrolling platform with box2D but I can't get it.
I'm trying with two bodies, one static and sensor and one normal which would be the platform.
And then I link them with a PrismaticJoint, with a motor and an axe parallel to the ground to make it scroll…
But, the fact is that, it doesn't work and moreover, my body just fall down as he shouldn't… It doesn't do anything but that…
So what can I do ? Could you help me please ?
Thanks a lot in advance ! 😀
edit : I finally made it scroll with an evoluting setSpeed each frame, but it still goes down… And I didn't find how to get the right length for the movement. I tried changing every parameter of the joint but it seems it doesn't change anything.