From: Alan B. <bl...@me...> - 2005-03-03 13:39:16
|
I had trouble as well in the joint.attach for colliding with a fixed object. The following changes to Joint in joints.pyx fixed my problem: def attach(self, Body body1, Body body2): """attach(body1, body2) Attach the joint to some new bodies. @param body1: First body @param body2: Second body @type body1: Body @type body2: Body """ cdef dBodyID id1 cdef dBodyID id2 if body1 == None: id1 = NULL else: id1 = body1.bid if body2 == None: id2 = NULL else: id2 = body2.bid self.body1 = body1 self.body2 = body2 dJointAttach(self.jid, id1, id2) Feel free to incorporate if it solves the problem in the way it should be solved :-) Best regards, Alan Blount |