I have a platform (box) which is of the type b2_kinematicBody and is moving with a linearVelocity. Than I have a ball which is a b2_dynamicBody.
When the ball lands on the platform it stays on the same position and doesn't move along with the platform.
Check this small video I made which shows the problem ----->>> https://vimeo.com/109238152
Already increased friction on both objects but no result. I can currently think of only one solution which is to make a joint between these two overytime they have contact. Is this the right solution?
Thx in advance Kris
PS: tested with latest version of box2d in c++
If you are talking about why it always rolls off the platform, it could be because it has no rolling friction (not to be confused with surface friction) to cause it to stop. Rolling friction is why a tire that is pumped up very hard will roll for longer than a tire that is a little bit flat - energy is used up in squashing the rubber as it turns around. Fixtures in Box2D are perfectly rigid, which is not possible in the real world. So this circle is like a steel train wheel rolling on a steel train track, except even less friction than that.
Try setting an angular damping value of about 0.5 for the circle body. That may be a little too much, but it should give you the idea. You may find that a high angular damping slows it down too much while in the air, which looks unnatural. If so, you could dynamically adjust the angular damping depending on whether or not it is touching something.