So if we have two adjacent shapes, we can replace them with an edge to fix the problem. But what if the shapes are supposed to have different properties?
Bug:Getting Stuck Between Tiles(Fixed and now re-introduced)
Bugs, Requests, and FeedbackCurrently Box2D does not know about connectivity between edges shapes. Once this is known, the contact normal needs to be kept in the Voronoi region of the vertices. I've entered an issue into Google code. When I get time, I will work on this project.
Smooth motion over adjacent general shapes will likely never be implemented. I plan to implement smooth motion over edge chains (sometime after 2.1).
Smooth motion over adjacent general shapes will likely never be implemented. I plan to implement smooth motion over edge chains (sometime after 2.1).
The trunk has an example of smooth movement over an edge chain. I hope to get this out in a release version soon.
That's terrific news! Look forward to playing with it.
Erin Catto wrote:
The trunk has an example of smooth movement over an edge chain. I hope to get this out in a release version soon.
I'm looking over your changeset and notice a bunch of disclaimers to the effect of: don't use this yet in your games. How thoroughly vetted is this at this point, and what areas do you think are going to be flaky?
I have a game creation product that currently does some magic work to break up general polygons (terrain) into edge chains, so I have an environment that can test this thoroughly, as long as it's working well enough not to render a game unplayable.
The current SVN seems to be working ok. The adjacency information is not perfect yet. I hope to fix that this week.
I have enabled adjacency handling for b2EdgeShape and b2LoopShape in the latest trunk. I updated the character collision test with more examples. It seems to work well and handles two-sided collision. This was a hard problem and took me a while to sort through the details. The code still needs some clean up (for efficiency). I'll do that once it gets tested a bit more.
Do not expect smooth movement over adjacent boxes or other unconnected shapes. I have no solution for that and I don't know anyone that does.
Do not expect smooth movement over adjacent boxes or other unconnected shapes. I have no solution for that and I don't know anyone that does.
Original thread: https://box2d.org/forum/viewtopic.php?t=4348