Your ideas are great. They will make the library much easier for people to use, and improve the quality of simulation. Some more things to think about:
1) Updating the broadphase just flushes the pair buffer, which sort of confirms new contacts. If there's no manual access to contacts, then it would be relatively easy to lazily buffer pairs, if you want. I'm not sure if it will help, or how the new broadphase will change things.
Additionally, there are a couple of ways to do lazy contacts. Will you put the dirty bit on the shape or on the contact itself? Even if you have to iterate over the body's contact list for each change, putting it on the contact seems less likely to cause trouble.
3) Buffered remove events might become more confusing. If a user deallocates user data on OnContactStop immediately, a buffered version of an event that receives that user data may fail to work.
5) It seems like there are 2 different settings here: do buffering/no buffering, and also contacts evaluated only on the step, lazily, or eagerly. Without lazy or eager behavior, you'll need access to the primitive contact and ability to update manually in order to enable the same functionality.
6) Are the add/persist/remove methods still necessary without access to contacts and contact points? It's important to think about what you can remove from the API. Without them, and no access to primitive contacts, lazy behavior would be faster and produce the same result as eager behavior. In any scheme, the changes would have add/persist/remove called outside the step often. Maybe it would be better to call something explicitly before and after islands are solved.
7) Finally, there's the issue of additions to the library. If ghost bodies or soft bodies are added, how easy will it be to hook into contact reporting?
1) Updating the broadphase just flushes the pair buffer, which sort of confirms new contacts. If there's no manual access to contacts, then it would be relatively easy to lazily buffer pairs, if you want. I'm not sure if it will help, or how the new broadphase will change things.
Additionally, there are a couple of ways to do lazy contacts. Will you put the dirty bit on the shape or on the contact itself? Even if you have to iterate over the body's contact list for each change, putting it on the contact seems less likely to cause trouble.
3) Buffered remove events might become more confusing. If a user deallocates user data on OnContactStop immediately, a buffered version of an event that receives that user data may fail to work.
5) It seems like there are 2 different settings here: do buffering/no buffering, and also contacts evaluated only on the step, lazily, or eagerly. Without lazy or eager behavior, you'll need access to the primitive contact and ability to update manually in order to enable the same functionality.
6) Are the add/persist/remove methods still necessary without access to contacts and contact points? It's important to think about what you can remove from the API. Without them, and no access to primitive contacts, lazy behavior would be faster and produce the same result as eager behavior. In any scheme, the changes would have add/persist/remove called outside the step often. Maybe it would be better to call something explicitly before and after islands are solved.
7) Finally, there's the issue of additions to the library. If ghost bodies or soft bodies are added, how easy will it be to hook into contact reporting?