using the kinematic body as platforms

hello, I am trying to build a platformer game with moving platforms, but i have encounter the problem that the character doesn't move with the platform, I have been trying for a while and can't figure out what is wrong, can someone help me out?

thanks
You mean for a platform moving sideways right? What are the friction settings, if either the player or the platform have zero friction this could happen.
Yeah low friction is going to cause "slippery" platforms. Even high friction will have some slip. You can try accelerating / decelerating your platform animation or adjusting the velocity of all touching bodies to compensate.
mayobutter wrote:
Yeah low friction is going to cause "slippery" platforms. Even high friction will have some slip. You can try accelerating / decelerating your platform animation or adjusting the velocity of all touching bodies to compensate.


I was going to do that, but I can only detect only at the beginning of the contact. is there a way to check all touching body all the time?
i believe this is the typical way (in wck) to loop through all bodies that are in contact.

Code:
for(var ce:b2ContactEdge = this.b2body.GetContactList(); ce!=null; ce = ce.next){
   var other:b2Body = ce.other;
   var bs:BodyShape = other.m_userData.body as BodyShape;
}


also i think I've read some stipulation about contacts that happen between frames being missed by this list(compared to begin contact), like a body that bounced and is no longer in contact. but for your purposes it should work well.

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