Animating Wheel Rotation along Path

NoImage

I made a little test scene for using them for controlling wheels when vehicle follows path.

I did not find any previous examples of doing this so here is my solution:

When the length of the curve (actual length, not path length) and radius of the wheel are known, the rotation can be calculated based on Speed-curve that controls the vehicle motion.

Here is the expression from my sample file:

b.Ipo.Get("ppspeed").getCurve("Speed").evaluate(b. Get("curframe")) * (47.5/21.1) * (-36)

47.5 is the lenght of the path and 21.1 is perimeter of the wheel.

I did not quite understand the logic of the rotation handling of this driver. Rotations are n * 10 degrees, so if I want to rotate object 90 degrees, the script must output 9. Thas why there is 36 in the expression above.

BLEND FILE

Comment (1)

  1. tonisipucai
    Posted:

    please send to me.

    VA:R_U [1.9.22_1171]
    Rating: 0 (from 0 votes)
    Reply To Comment



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>