Hi guys. I want to make a game where you can control a car and when you press the up key to make the car move the animation is triggered to make parts of the car move (e.g a pedal move down). I have the script to make the car move, but when i add the animation onto a part of the car, that part of the care does the animation attached but stays static. Any ideas how to help? Thank you! :)
Let the Animation component be on a Game Object 'Parts' that is controlled by animations. Let 'Parts' be a child Game Object of a 'Car' Game Object that you control by code.
The Animation component only modify local transform properties of the skeleton game object hierarchy, so you can modify the transform of 'Car' as a kind of pivot point for the whole car.
Hope it makes sense :)
answered Mar 21 '12 at 07:53 PM