PDA

View Full Version : Tires Rotate


FlexGiddy
03-18-2003, 02:07 PM
Does anyone happen to know a script or where I can find a script to rotate tires..?

Flex

svenip
03-18-2003, 03:16 PM
so, the formula is

U = 2 * radius * pi

YellYellYell
03-18-2003, 03:29 PM
Just have a look on this great page

http://www.lostpencil.com/

cu

marvin042
03-18-2003, 04:42 PM
Flex Giddy,

I just posted a similar question and I got some good advice which I'll pass to you. The first is lostpencil.com is awesome. This is really good to know how to make the tires rotate.

If you just want a simple spin however, it's pretty simple math. The circumference of you tire is 2*3.14*diameter.

Figure out the diameter of you tire. Say it's x. Then go 360/x. Whatever number you get (we'll call it y), use that to make an expression:

tire.rotateZ=tire.translateX * y

If you want to read my thread, it under the maya MEL category and it's called something like tire rotation or tire spin.

If you want a more in depth, then check out lostpencil.com

marvin

FlexGiddy
03-18-2003, 04:50 PM
Shibby, Thank you guys a lot.... I tried to download a MEL script from some guy and the thing just didn't work at all.....Well I didn't know it was that simple....again thank you guys. I'll check out your thread too. Marvin042... Do any of you guys happen to know a great site to learn MEL scripting...?

Flex

CGTalk Moderation
01-14-2006, 04:00 PM
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.