Moving platforms that move the player character

So I looked at the post linked before again, and I remembered that this was posted on that thread. How would one go about simulating physics relative to an entity? I’m specifically looking at this sentence.

This might be hard to implement, though, as you’d need to manage moving the player from world to local grid and back.
Because I’m not sure how you would calculate it on a local grid instead of a world grid.