Jump to content

Rotate Wheel


Recommended Posts

I'm trying to build an animation where a wheel rotates based on the path of the axis, axis in this case being a simple primitive although, I don't know how to get the wheel to follow the axis and rotate based on the velocity of the axis (cube) ?

I have the path for the cube but stumped on getting the wheel to follow the cube and to rotate.

Link to comment
Share on other sites

For the rotations you take (PI * radius)**2  and add that to the translation. You'll probably want to convert from radians to degrees. So for a circle translating in X and rotating in Z you could put something like this in the Z rot parameter...

-deg(pow($PI * (bbox(opinputpath(".", 0), D_XSIZE)/2), 2) + ch("tx"))

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...