|
From: tim r. <bla...@ya...> - 2008-01-27 00:14:39
|
Traceback (most recent call last):
File "C:\Documents and Settings\Owner\My
Documents\NIm's code\sandbox\sandbox.py", line 258, in
<module>
input(pygame.event.get())
File "C:\Documents and Settings\Owner\My
Documents\NIm's code\sandbox\sandbox.py", line 166, in
input
player.clampDeploy()
File "C:\Documents and Settings\Owner\My
Documents\NIm's code\sandbox\sandbox.py", line 133, in
clampDeploy
self.clamp.setBody(self.body)
File "geomobject.pyx", line 107, in
ode.GeomObject.setBody
TypeError: exceptions must be strings, classes, or
instances, not type
Yahoo wont let me keep my exception lines the way
python gave them to me. grumble. Anyway, I'm calling
geom.setBody(self.body), and it seems to be throwing
an exception, but python doesn't like the flavor of
the exception. I've already done a bit of searching on
this one. the geom in question is a ray, and self.body
is really a valid ode.Body, and I know cause I checked
it with pdb. I've looked in the docs, and an ode.Body
seems to be exactly what the function wants.
I already have a geom attached to this body, but I
want another one as a probe for the magnetic grapple.
I've heard that a body can have any number of geoms,
but I couldn't find it in the docs, so I need this
verified. Also, how do I set the position of the geom
relative to the body?
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
|