I tried to port the current box2d trunk to android and struggled with a compiler error that seams to be part of an incomplete commit.
In b2Controller many body->m_controllerList are used, but b2Body does not have m_controllerList in it? Where did it go?
I browsed the code in the google svn repository and it looks like m_controllerList was gone allready in r02 after you moved from sourceforge.
Can anyone explain this to me?
Controllers were removed from the main source tree. They have been moved to the Contributions folder.
The version of Box2D at Google is working well and is getting close to the next point release. I am just working on bug fixes and documentation.
There was a reason I had put all this stuff in the main source, you know. There's simply not enough "hooks" on Box2D to support controllers reasonably (or pretty much any addon - I think the contibuted FixedJoint also doesn't work), or else I would have written it as an external component in the first place. I had thought you were going to sort that out before release.
Perhaps the simplest solution would be if I provided a smallish Actor framework in Contrib, and built controllers onto that. I cannot simply just fix the components as-is.
That still won't allow people to contribute joints, though.
Yes it would be great if Box2D would be the most feature rich, versatile, extensible physics engine in the world. I'm working on Box2D slowly, but steadily. But it is not my job. It is one of my hobbies. Sorry, that's just the way it is.
I apologize that I had to remove the contributions from the main code base. It is totally my lack foresight that lead to the current situation. I've been working to re-implement some of the features. I hope you still find Box2D usable.
Please submit issues to Google code if there are features that you would like to see. We can also discuss potential features on this forum before adding them to Google.
Erin, I'm sorry, I didn't mean to be so harsh. It's just frustrating to me to have ideas and desires to improve the engine, and be unable to carry them out.
In any case, the controllers are my responsibility, I don't expect you to work hard maintaining them, and I should be to blame for them not working at the moment.
But can we discuss what should be done about it? As I said, I can create a wrapper framework around Box2D, but I would have thought you'd not like that. If many contributions all depend on a specific contribution, then it occupies a rather odd position.
Or I can discuss changes to the core engine that would make it more amenable to addons. It's not difficult. Mainly single object holders, such as the event listener, need to become multiple object holders. Joints (and shapes) can be shifted from core by using a virtual method instead of b2Joint::Create. I've already used this technique for the controllers. Possibly, fundamental objects like the broadphase and the solver could become virtual dispatch, so that they can be swapped out by non-core objects (I've done this in my port for the broadphase), which can allow fairly heavy non-invasive hacking.
No worries.
I still think we can work together to improve Box2D. Lets pick one target feature at a time. The latest was body de-activation. The implementation for this is almost complete.
So next, lets pick our next target feature. For example, we can pursue user joints. If you are interested in this, please make a new post. Make a proposal feature. Give some indication about how the API should be setup and how it should behave. If it appears a consensus is reached, you can simply point to the post from a new Google issue.
Yeah, one thing at a time. It's easy to forget that.