Mattsa008 / pybox2d

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

accessing fixture.aABB raises an exception #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. fixture.aABB
2.
3.

What is the expected output? What do you see instead?

>>> fixture.aABB
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.6/site-packages/Box2D-2.1b0-py2.6-macosx-10.6-universal.egg/Box2D/Box2D.py", line 3227, in __GetAABB
    return _Box2D.b2Fixture___GetAABB(self, *args, **kwargs)
TypeError: Required argument 'childIndex' (pos 2) not found

What version of the product are you using? On what operating system?

branches/box2d_2.1, revision 275

Please provide any additional information below.

C++ signature:

const b2AABB& b2Fixture::GetAABB(int32 childIndex) const

So, this C++ member function needs to be wrapped as a Python method, not a 
property.

Original issue reported on code.google.com by mikke...@gmail.com on 17 Oct 2010 at 12:44

GoogleCodeExporter commented 8 years ago
Oops! aABB was a typo for the name, even.

Great -- keep them coming. :)

Should be fixed in r276.

Original comment by sir...@gmail.com on 21 Oct 2010 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by sir...@gmail.com on 5 Nov 2010 at 1:27