This project has moved and is read-only. For the latest updates, please go here.

moving platforms dragging player

Topics: User Forum
Mar 19, 2012 at 8:40 PM

Hi, I'm making a sidescrolling platformer. I'm using edges for the platforms' collision and a rectangle for the player. I have created some moving platforms the player can jump on and I want them to drag the player along, so that when you stand on them you move with the platform. I tried changing the friction and inertia of the player and the moving platforms, but the player still doesn't move. He stays in one place and the platform moves out from underneath, resulting in him falling. Any suggestions on how to go about doing this? Thank you! 

Mar 19, 2012 at 10:53 PM
Edited Mar 19, 2012 at 10:56 PM

Unless you're Neo from the Matrix that's exactly what would happen in real life if you jumped onto a moving bus...

Anyways check these for ideas:

Also I've seen similar discussions on Box2D forum for even more ideas (seems to be a common problem). For example you could stick the player to the platform with a joint if that's feasible.

Apr 5, 2012 at 11:17 AM


- the platform body type is dynamic or kinematic,

- the friction between the player and the platform is non-zero and

- you are not applying any other forces/impulses to it

then it should move along with the platform. Perhaps you are applying a force to make the player stand still?