PDA

View Full Version : Reversing rotation


Notum
01-10-2003, 07:41 PM
I have a quick question. If I have 2 objects, say to cylinders, and I want to be able to turn one and have the other turn in the other direction.
Say a rotate the cylinger to the right, then I want the other cylinder to rotate left.

Any tips?

snot_nose
01-10-2003, 08:41 PM
yeah, i think you should use the expression controller for this one.

Notum
01-10-2003, 08:43 PM
figured as much... problem is... I don't know how to do it....

Notum
01-10-2003, 09:19 PM
please guys... I know that at least one of you must know this.
I really need help.

snot_nose
01-10-2003, 10:30 PM
well, i don't have much of experience with the expression controller but this is an easy one.
first you need to apply a XYZ euler to both of the cylinder rotation controller.
now lets say you want to make cylinder02 to rotate the opposite way on the Y axis from cylinder01
so you apply a float expression to the Y rotation of cylinder02.
in the expression dialog you CREATE VARIABLE, called, lets say "deg", then you click assign to constant and put a value of 360 degrees.
then you create another variable called lets say cylinder01 and assign the controller Y rotation from cylinder 01.
then you write in the expression dialog "deg-cylinder01"
and that's it.

Notum
01-11-2003, 12:06 PM
thanks man. I'll try that out and see what I get. :)

CGTalk Moderation
01-14-2006, 03:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.