Translation after rotation of a body
Posted: Thu May 22, 2014 8:34 am
Hi!
Let me first give a situation overview of my problem. I have a body (a tube) which needs to be able to rotate in 3 dimensions (x, y and z) and it needs to be able to translate along the z axis (this is the direction in line with the tube). But this translation should be around the current (after rotation) z axis of this body.
I'm using a free joint for this movement, but the translation of the body is always around the 'default' local axis of the body (see attachment for an illustration of the problem). I want this translation to be along the new z-axis after rotation of the body, so in line with the position of the tube. I've also tried to use a custom joint, but the problem is that I don't know the amount of translation that I need, so I can't define a function of the translation that comes with a certain rotation of the body.
Does anyone knows how I can solve this problem? Or how I have to define the joint?
Thanks in advance!
Regards Laura
Let me first give a situation overview of my problem. I have a body (a tube) which needs to be able to rotate in 3 dimensions (x, y and z) and it needs to be able to translate along the z axis (this is the direction in line with the tube). But this translation should be around the current (after rotation) z axis of this body.
I'm using a free joint for this movement, but the translation of the body is always around the 'default' local axis of the body (see attachment for an illustration of the problem). I want this translation to be along the new z-axis after rotation of the body, so in line with the position of the tube. I've also tried to use a custom joint, but the problem is that I don't know the amount of translation that I need, so I can't define a function of the translation that comes with a certain rotation of the body.
Does anyone knows how I can solve this problem? Or how I have to define the joint?
Thanks in advance!
Regards Laura