This patch adds a new getConstraints method to the Physics Constraints (bge.constraints) API (updated version of my old patch).
The method returns a tuple list of constrain wrappers, for constraints that are generated within Blender and the API.
The patch also fix the constrain memory leak.
Actually I am not satisfied with the actual patch.
- The patch is a way to complicated. I will try to improve it.
- Constraints that are deleted via API are not modifies the constraint list and so the wrapper still returns deleted constraint wrappers.
- The Python API method it self. I think a returning a dictionaries with the target object/name or a method which where the user can give target object/name would be better.