From: Matthias B. <ba...@ir...> - 2005-10-03 20:33:04
|
Andrew Durdin wrote: > # Connect body1 with the static environment > j1 = ode.BallJoint(self.world) > j1.attach(body1, None) > j1.setAnchor((0, 200, 0)) I couldn't run your code as I don't have PyOgre but it seems the problem is you store the BallJoint in a local variable which gets deleted at the end of the method. And as j1 is the only reference to the BallJoint object the BallJoint is garbage collected when j1 is deleted which will also delete the underlying ODE BallJoint. To fix this you simply have to keep a Python reference to the joint (self.j1 = ode.BallJoint(...)). - Matthias - |