Doesn't know what it wants

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Sat Jan 26 01:32:30 EST 2008


-On [20080126 06:26], Tim Rau (bladedpenguin at gmail.com) wrote:
>Line 147 reads:
>        moi = cp.cpMomentForCircle(self.mass, .2, 0, vec2d((0,0)))

I think it expects something like:

# badly named variable, pick something better depending on context
temp = vec2d(0, 0)
cp.cpMomentForCircle(self.mass, .2, 0, temp)

I am curious about your use of double braces for vec2d though. Why ((0,0)) and
not (0, 0)?

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
We have met the enemy and they are ours...



More information about the Python-list mailing list