Multiple DC Objects Rotating Together
-
Hi
Can you interact with one object and make others go of at the same time? For example, on a car if you click on one wheel all 4 start turning?
I'm new to dynamic components so any help would be great.
-
YEs, you can do that. I've forgotten some of the DC syntax, but the idea is that you add an OnClick attribute to the car. And set it as animation. And specify that it animates 0 to 360. Then make another attribute that is set to equal the value of that OnClick cell. So what happens is when the car is click on with the interact tool, it will animate the OnClcik cell value from 0 to 360, and the custom attribute will reflect that value. The make all the wheels and set their rotation value to equal the cell that that is animating from 0 to 360. Each tire's rotation should be set to the same cell and then they will all rotate evenly. I'll see if I can get quick example working.
Chris
-
ok, I got something working. 3 cars, each have their wheels rotating. One just rotates wheels. One also drives forwards and backwards. One opens and closes its doors. Check out the code, its pretty simple. All animation is being driven by a single OnClick for each car. Check out the video and download the model to see the DC values. Note, there is no sound in the video. Hope it helps,
[flash=542,353:6a3bkcko]http://www.chrisfullmer.com/chrisfullmer/forums/3_cars_DC_demo.swf[/flash:6a3bkcko]
Chris
Advertisement