Jump to content
Hash, Inc. Forums
Sign in to follow this  
sbk

constraints question

Recommended Posts

Hi,

 

For the scooter I'm doing, is there a constraint I can use so that when the scooter goes forward, the wheels rotate?

Share this post


Link to post
Share on other sites

Sounds like an expression would be good for this.

I don't believe that there is a constriant that would flat out do this for you.

 

 

Mike Fitz

www.3dartz.com

Share this post


Link to post
Share on other sites

I will look up about doing expressions. Is there a tech talk or a thread you know of?

Share this post


Link to post
Share on other sites

If I had a little more time today, I'd try and flesh it out for you, but since I don't.... do a search in the forum using "expressions".

You might get the phone book, but a lot of good threads will come up that will help you.

 

Mike Fitz

www.3dartz.com

Share this post


Link to post
Share on other sites

the phone book --hmm. yes, "facial expressions..." :o gazillions would be the mathematical term for the number of hits.

 

But I did find a tech talk and one detailed article. Will post back with specifics if this isn't enough to be getting on with. Maybe I'll try a more specific search too.

Share this post


Link to post
Share on other sites

Hi SBK,

 

Here's a nice simple way of using an expression to rotate a wheel as it moves (this example can be expanded to the number of wheels required):

 

Create a ‘root’ bone that points forwards. Put a wheel bone in as a child of the root bone, pointing it along the wheel’s axis. In an action or choreography, select the wheel bone and in it’s properties, go to Transform > Rotate > Z and right click it and select ‘Edit Expression’. Now enter this expression, replacing the ‘d’ with the diameter of the wheel:

 

(360*..|..|..|..|root.Transform.Translate.Z)/(Pi()*d)

 

Now when you translate the root bone along it's Z axis, the wheel will rotate in sync.

 

Hope that helps,

 

Steve.

Share this post


Link to post
Share on other sites

Steven Cleary,

 

bless your little cotton socks :D

Do you really like rhubarb? If you ever come to Nova Scotia I'll make you a pie. With strawberries too if they are in season.

 

Seana

Share this post


Link to post
Share on other sites

Deal. :) But, a word to the wise: We get pretty wild Atlantic weather as a rule. But it's the 80 km/h hot fogs that'll do you in. For practice, the RCMP clock them on radar by the airport (I'm joking, but only just.)

 

And don't be frightened by my avatar. The snake Shelby was the first 3D character I made, for a stop motion piece called the Viper, about a window washer. I just haven't changed it yet.

 

very best,

S.

Share this post


Link to post
Share on other sites

It works!!!!!!

 

The wheels on the scooter go round, saved reusable action ---cheers!!

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...