Constrain single axis rotation...

Okay, I have two objects.  What I would like to do is constrain the rotation of the second object's z-axis to the rotation of the first's z-axis. 

This would mean that the second object will only match the rotation of the first's when it's z-rotation changes, but ignore any other changes.  This will mean the second object will need to be able to translate the movement of the first object when they are not aligned. 

The two objects are also pivited slightly in the world and when I apply a wire parameter, it gives out odd results, the second object tends to rotate about on serveral different axis.

Now I can make this work reasonably well when the objects are situated flat in the scene, but if the objects are offset when I start, I start having lots of fun and the second object tends to wonder around in a fit.

What I would like to know is how to do I translate the rotation of the first object so that I can isolate the the z-transformation and then apply it to the second, even when the objects are offset slightly.

Cheers
Shane

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
raaab's picture

I have the same problem.

Did it actually work for you? I'm experiencing a similar problem. I just want object B to translate object As local z axis. Both objects are aligned at their center. Also, what type of constraint should B use to link to A? I've tried "orientation constraint" then "link constraint", then just simply linked. None worked.

bazzinga !

jmham's picture

In the motion panel at the

In the motion panel at the bottom you can change your eruler axis order.

 In my experiment I had 2 dojects doing completely different rotations and translations. Both object where also offset. I wanted to grab the Z rotation from object A, and wire it to object B (meaning A drives Bs z axis rotation). In order for this to work, I had to change object Bs eruler axis order to ZXY.

 If I leave the axis order to XYZ the object be starts flying crazy all over my scene.

 I'm not sure if that's what your trying to do, hope that helps you out. 

 

jen

Jen Hamilton - pixelkid.ca 

Jen Hamilton - pixelkid.ca

RustyKnight's picture

Jen, you rock!  That

Jen, you rock!  That works!  I still have some tweaking to do, but it takes me a REALLY long way!  Cheers

 

Shane 

jmham's picture

NP! Glad I could

NP! Glad I could help.

 

Jen

Jen Hamilton - pixelkid.ca

RustyKnight's picture

Cheers Jen, I appricate the

Cheers Jen, I appricate the idea!  I'll give it a go and let you know

 

Shane 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.