Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 24-09-2006, 03:24 AM   #1
Stephen
Subscriber
 
Stephen's Avatar
 
Join Date: Sep 2002
Location: northampton
Posts: 242
Thanks: 0
Thanked 11 Times in 11 Posts
Default Babby buggy

Hi all.
I need to animate a baby buggy but I want to create a expression so the when the buggy is translated in the +x and -x direction I want the wheels to rotate accordingly.

Can anyone help with this?

Thanks guys..
__________________
It is by my will alone I set my mind in motion
www.origin3d.co.uk
Stephen is offline   Reply With Quote
Old 24-09-2006, 07:02 AM   #2
Xander-0
Registered User
 
Xander-0's Avatar
 
Join Date: Feb 2005
Location: This Place
Posts: 220
Thanks: 0
Thanked 2 Times in 1 Post
Default

The basic form of the equation you're going to need is:

degrees rotated = (360 x distance traveled) / (2 x pi x radius of wheel).

The general form of the Expression you're going to need will be'

wheel.rotateZ = (360 * wheel.translateX) / (2 * 3.1415 * [radius of wheel]);

Now, obviously, I have no idea what the radius of your wheel is, so you'll have to find that out yourself. And pi can be used as '3.1415' or to any number of other places (although I think there's a way to summon the exact value in maya, I can't think of it at the moment - and in most instances you're probably not going to need anything more than the 4 digits or so.).
Also, depending on how you have the rig set up, you may have to change what the wheel uses to grab its translation (for example, if you have the wheel parented to something, moving the object won't actually change its location - it'll be at a local '0'). Just be aware of things like that.

That help?
__________________
Book Wise

http://X4nd5r.deviantart.com
Xander-0 is offline   Reply With Quote
Old 24-09-2006, 10:33 AM   #3
Stephen
Subscriber
 
Stephen's Avatar
 
Join Date: Sep 2002
Location: northampton
Posts: 242
Thanks: 0
Thanked 11 Times in 11 Posts
Default

Hi Thanks for your reply.
I managed to get it going very well thanks, works a treat!

Many thanks
__________________
It is by my will alone I set my mind in motion
www.origin3d.co.uk
Stephen is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.