Ah, we tied! I decided to learn a bit about pyrex and added it in to my local source just before I got your email. Interesting stuff!
So, linear_velocity was definitely the missing piece of the puzzle for me. The CCylinders are working now, too. I just need to adjust the geom so that the y axis is normal to the caps instead of the z axis. Thanks! -Mike P.S. Let me know if you need a test app, since I'd be happy to tar this bowling app up and post it online after I clean it up a bit. On Thu, 2005-02-03 at 18:15 -0800, Sean R. Lynch wrote: > Michael Edwards wrote: > > >Hmm, did you check in today? It's telling me that my Body objects don't > >have that attribute: > > > >AttributeError: 'Ball' object has no attribute 'linear_velocity' > > > >Ball being declared as: > >class Ball(ode.Body): > > > > > Yes, that was checked in just before I sent the reply. Oh, wait... err, > I updated, fixed, compiled, and tested, but forgot to check in. It's > checked in now! > > >Also, since I'm the guy who's submitting ode tests ;), I have a problem > >with this line: > >self.pin_geom = ode.GeomCCylinder(self, self.space, 1.0, 4.0) > > > >where self is an ode.Body. I get this error: > >TypeError: function takes at most 3 arguments (4 given) > > > >So, I poked around in geoms.pyx and it looks like there's no parent > >parameter in the __new__ method. When I cut out "self" from the call to > >GeomCCylinder, I got this error: > > > >dealloc <GeomCCylinder> > >Segmentation fault > > > > > Thanks for pointing that out. I added the parent parameter to > GeomCCylinder and GeomRay and checked in. Do you still get the segfault now? -- We're mad as hell, and we're not gonna fake it anymore. http://www.antholog.com --- fair and balanced
