Hi:
I want to create a subclass of ode.Body. I have written a class
class myBody(ode.Body):
def __init__(self):
self.world =3D ode.World()
ode.Body.__init__(self, self.world)
...
The strange part is that when I execute the line
mb =3D myBody()
I get the error:
TypeError: function takes exactly 1 argument (0 given)
It appears as it tries to run the ode.Body.__init__ method before
calling the myBody.__init__ method. I have made some variations that
just confirm this thought.
Can anyone please tell me why this is happening, and how I can get around t=
his?
Regards,
Ricardo Kirkner
|