Physics object on a moving platform

I am creating a game where NPCs that are made up of physics objects can walk on a moving platform which is also a physics object. The platform moves through the use of prismatic joints with motors. When an NPC goes on the platform, the movement of the platform causes the NPC to slide around on the platform as the platform moves, speeds up, and slows down (the NPC has a low friction). While this is physically correct, it is not what I'd like to happen for obvious gameplay reasons.

Aside from adjusting friction is there any easy way to make it so that the NPC stays in place and can move about on the platform as if it is stationary, even though the platform moves, speeds up, and slows down?
Apply the same forces (adjusted for mass) to the NPC as you apply to the platform?

[edit] Just re-read your post and see you aren't directly applying forces to the platform. Then you could work with velocities, and apply delta velocity to your NPC based on the current delta velocity of the platform per timestep. [/edit]
Thanks for the reply. I suppose that is one way to do it, although thinking more about the problem there may be physics other objects on the platform that the NPC stands on (so something in between the NPC and the platform) so it can get a little tricky determining which objects I'll need to apply the delta forces to.
I posted on a similar topic a few days ago, and gave some pseudocode with it as well :

viewtopic.php?f=3&t=4033

In your case, it seems that you are not concerned with the acceleration part as you want static NPCs, so it would be even simpler.

In short, you just have to apply enough impulse ( or force ) to keep the NPC at the same speed than your moving object.
Thanks, I saw your post shortly after I had posted. I'll give that a try but I think the real complication for me now is determining whether an NPC ultimately is "standing" on a moving platform since there can be objects between the NPC and the platform which is a separate issue altogether.

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