I finished implementing pickling (saving/loading of the world state -- yay) in Python, and in order to recreate inputs from their factory outputs, I needed to add a few more getters to the C++ end of things. Would you consider adding these to the trunk?
I can't see any negative impact for other users. If you feel the need to change the names of some of them, I understand.
Also, I noticed something missing from b2Controllers -- the fact that you cannot tell what type the created controller is (unless, of course, you know beforehand). Keeping with the structure of the other types, I added:
I can't see any negative impact for other users. If you feel the need to change the names of some of them, I understand.
Also, I noticed something missing from b2Controllers -- the fact that you cannot tell what type the created controller is (unless, of course, you know beforehand). Keeping with the structure of the other types, I added:
Code:
enum b2ControllerType
{
e_unknownController = -1,
e_buoyancyController,
e_constantAccelController,
e_constantForceController,
e_gravityController,
e_tensorDampingController,
};
Thanks!{
e_unknownController = -1,
e_buoyancyController,
e_constantAccelController,
e_constantForceController,
e_gravityController,
e_tensorDampingController,
};