- Home /
Editing animations of distinct gameobjects simultaneously
Hello everyone ! :)
I would like to make an animation of two distinct objects for a cutscene. I want to animate a vehicule moving in the scene and the camera which will look at my vehicule. I have already made the vehicule's animation.
I was wondering if I had the possibility to preview simultaneously the animation of my vehicule and the animation of my camera. Thus, I will be able to edit the camera's animation so as to keep my vehicule in the field of view of my camera for example.
I don't want to use the LookAt function within a script. I would like to launch the animations from the editor, with the ► button of the Animation window (if possible) :
Thank you in advance !
Answer by herDev · Jan 17, 2017 at 08:27 AM
Hi! While this might not work in certain circumstances (depending on the object structuring needs for your project).. If you create an empty gameobject and place the camera and vehicle inside it as children, you can then create an animation clip on the parent object and the parameters for both the camera and vehicle will be exposed in the animation clip too. This way you can preview them together.
Hope that helps!
$$anonymous$$mh, not a bad idea. Even if it could break the hierarchy, it's possible to do as follow :
Create a parent (in (0, 0, 0), attach the vehicle and camera
Create an animation on the parent and animate both children objects simultaneously
For each child, copy the animation keys, detach the child, create an animation clip for the child, paste the copied keys
It's really hard work for this ! But thanks for the suggestion !
Your answer
Follow this Question
Related Questions
Smoothing Animation Curve when looping 0 Answers
Need Help With Animations! In C# 2 Answers
Unlock Animation Keyframe Tangent Length? 0 Answers
Procedurally generate AnimationClip at runtime 3 Answers
How to make mecanim animation stay at player's position 3 Answers