From: Mizipzor <miz...@gm...> - 2007-04-21 15:40:57
|
Hi. Im trying to make a rope. It seems that the joints between each other works well but the "top" joint isnt attached to the world. Heres how I create the joint: #create the joint j = ode.BallJoint(world) if parent == None: j.attach(self.body, ode.environment) if not parent == None: j.attach(self.body, parent.body) j.setAnchor((attachPoint[0],attachPoint[1],0)) If no parent is submitted it attaches itself to the environment instead. You can find the full source here: http://rafb.net/p/3OAuKo49.html In that code I use a vector class, if you want to look at it or try to run the program, you can find the source for the class here: http://rafb.net/p/u1LwRm51.html |