This test is a bit confusing as it will not work if you rotate the "Platform".
E.g.
bd.angle = 0.5f;
Then you will unexpected results by the "Actor" which will fall through half way to the left. I find this to be not a good example of one sided platform.
What do you think?
Did you try it that way? I'd be happy to update the demo if you have something that works better.
I finally tried the velocity test. It seems to work well in isolation. However, if I pull down on the circle with the mouse joint I get a lot of jitter. This suggests the velocity approach may not work well when other bodies/joints interact with the character. Simple but perhaps too simple?
Well I think you miss the point of the testbed. The main purpose is to demonstrate how to use the API and to test built-in functionality. How you implement game logic, like a one-sided platform, is up to you. I agree that there may not be one best way to handle a one-sided platform in Box2D, and I never claimed there was.
So this discussion really doesn't fit in this sub-forum because it is about game play choices. For those choices, we really need the context of your game.