Moving Platform and interactions

Hi (again),

I've got a problem with my platform game (again).
At some point the playable character can jump on a floating platforms wich move horizontally or vertically.

Here I've found 2 approches to handle that.

The first one (barbarian mode) is to make static objects and move them myself setting their x and y positions. It works fine but when the character is one of them, he doesn't follow the movement so you have to run with the platform wich is quite annoying.

The second one (the good one I guess) is to make dynamic objects and play with SetLinearVelocity instead of position. It works well with the movement and if the character is on one of them, he's part of the movement so that's great. The problem I've got is that whenever the character is on one of the platform, it becomes too realistic. It adds mass to the platform and It does not go as high as it should (because the linearVelocity should be increased).

Is there a way to make a dynamic object mass inalterable regardless of what's on it? I'm really not sure I'm taking this with the right angle. I've tried to find solution in the forum but in most of the physics game balls don't follow platforms.

Cheers,
up! (still concerned about this issue)
What if you gave the platform a very large mass relative to the player, so that the addition of the player's mass is negligible?
you can use kinematic bodies. they work like static bodies, but you can apply forces to them. they are perfect for moving platforms.

Original thread: https://box2d.org/forum/viewtopic.php?t=5387