PDA

View Full Version : Train Wheel Rig


cecofuli
02-07-2005, 08:45 AM
Hello to all, yesterday it has come in my mind to simulate the movement of the wheels of a train. Initially I have thought… easy… Instead I have found some difficulties.I do not succeed to understand if this is the correct solution.
I have created a simple IK system adding a Reactor Controller, but the result does not satisfy me.
Someone has one solution? I have noticed that the movement of the piston is equal to the trigonometrical functions, but do not know what to do.
In attached there is file max 7.

Thanks!





http://www.treddi.com/upload/cecofuli//Upload/03%20-%20Forum/03%20-%20CGTalkWheel/Wheel.jpg

colony
02-07-2005, 02:50 PM
you need to assign expression controller to X positon of Piston //
and write something like this:

//
dependsON $WHEEL
r = degtorad$wheel.rotation.z_rotation.controller.value
p= cos(r) * WHEEL_RADIUS
//


where WHEEL_RADIUS is radius of your wheel for example 120 :)
and watch the correct rotation axis of the wheel -
in my example it is Z..

i can't check this little expression ( donthave max:( ) , but I hope this will work

cecofuli
02-08-2005, 08:44 AM
Thanks, i try it, but this expression don't work very well ....:sad: . Why?

CGTalk Moderation
02-08-2006, 09: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.