From: Moster M. <mos...@ho...> - 2011-01-06 06:18:25
|
Now, I used .setPosition((x,y,z)) and then call the setFixed function. That works, but I don't know what influence will occur on my system, I means another bugs. Thank you for your reply Best regards, Sukrit Manokhatiphaisan Master degree student of Institute of FIeld roBOtics(FIBO) King Mongkut's University of Technology Thonburi Administrator of Hubei Jingshan Light Industrial Machinery (Thailand) Co.,Ltd Email: mos...@ho..., mos...@gm... Tel: 085-988-8628 << Confidential Note >> If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication to others. This e-mail message (including any attachment) is intended only for the individual(s) or entity named above and others who have been specifically authorized to receive it. Please notify the sender that you have received this email in error by replying to the email. Please then delete the email and any copies of it. This information may be confidential and be subject to other privilege or any other immunity. Date: Wed, 5 Jan 2011 12:28:12 -0500 From: gl...@cs... To: mos...@ho... CC: pyo...@li... Subject: Re: [Pyode-user] How can I translate the FixedJoint Position? On 12/25/2010 02:27 AM, Moster Manokhatipaisarn wrote: My code as follow: join = ode.FixedJoint(self.visualWorld.odeworld) join.attach(self.vObjList[0].body, obj.body) However, I want to translate the fixedjoint position. I try to translate but the result is not make sense. It would be better if I can detach this joint, translate it and attach again. But I don't know how to detach this joint I'm not sure I understand your question. You want to have two objects fixed together, but periodically change their positions? ODE does not provide a function to detach joints. Since FixedJoints don't have any state, you could probably destroy the joint, move the bodies, and create another one. However, be aware that the manual says: "Using this joint is almost never a good idea in practice, except when debugging. If you need two bodies to be glued together it is better to represent that as a single body." Hope this helps. Ethan |