Suggestions for improving the contact callback system

This is now checked in. We need to create some demos in the testbed.

- Character movement
- One-sided platforms
- Fix sensor demo (Erin)
- Others?

If you care about the contact callback system, please create a testbed demo of the feature you care about.

BTW, I think we can have all the callbacks funneled to the individual tests via virtual functions. I will set this up soon.
Just chiming it to show my support for the hard work (thinking?).
This all sounds awesome. Much simpler and more powerful. Two features that do not often meet.

-nick
Ok, I adapted SensorTest to the new contact listener. With this you can see how to implement BeginContact/EndContact for sensors.

Any other contributors? I'd really like to see contributions for:

- Character movement
- One-sided platforms

Please make these tests as simple as possible so that others may easily learn from it.
i will be trying to contribute to porting to AS3, and then i will also gladly contribute AS3 examples of its use.
might take me a few weeks to get through the porting though, starting at rev 206.

I'm really looking forward to these changes.
thank you Erin Catto.
It is not a great time to port. There are still many changes coming soon.

We will do a new release of the C++ code once things stabilize.
ok good to know, there are several revisions between 206 and where you started committing contact changes.

would b2DynamicTree and other additions and modifications be stable to port?
Erin Catto wrote:
Any other contributors? I'd really like to see contributions for:

- Character movement
- One-sided platforms

Will the recent changes significantly affect the way these things need to be done? In what ways?

I might be able to do a character movement demo at some point (this seems to be something that's very easy to get wrong, and I'm going to be working on something similar in Java soon), but it definitely won't be within the next few days, so if anyone out there definitely has the time and inclination to do it, claim away. 🙂
sketchbookgames wrote:
would b2DynamicTree and other additions and modifications be stable to port?


No, these are probably going to be changed soon. New features are usually revised a couple times before they stabilized.

ewjordan wrote:
Will the recent changes significantly affect the way these things need to be done? In what ways?


Well the contact callback system has changed. So I would like a demo that shows how to use that system.

On the other hand, many people are interested in character movement. A testbed example would help to answer many questions and also provide me with a platform for addressing any shortcomings of Box2D.
I'm happy to do the work for the character movement system. I've been looking for a challenge lately and I long to get back to c++. However, I don't have a timeline for it... very busy at work and with family.

What would make my life easier is if there was a plan I could follow, save me the time to think of one. If someone has a plan but not time to do it, that would be the reese's peanut butter cup of coding.
Whoa; I take a couple-month hiatus and so much happens. I was working on capsule shapes, shapecasts, and character movement, all of which are important for making a good platformer character. I hit a wall on my own box2d project trying to tinker with characters, but maybe I can get started again.

Here are the relevant threads:
shapecasts/character movement
capsule

Assuming Vengant hasn't made any progress, I'll try working on the character demo by attacking it on these three fronts. But before I dive into code, can I have some advice?

Capsule Shapes: What I didn't understand here was how exactly manifolds work. Do you know where I could find some information on them?

Shapecasts: Do they exist in any form yet? Will the new broadphase support them? If so, is there a simple (if inefficient) way I could calculate them in the meantime?

Character Movement: Previously you said you'd always use a custom solver to calculate character movement. Do you have any advice on where to hook this sort of information? Should I step the world and then move stuff around based on a character ghost shape? Should I do anything during the step?

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