- Home /
transform.Translate() problems
Hello!
I have some problems. I want a little camera shake in the beginning of my scene so I animated it to my camera and it works fine. When I try to move my camera with transform.Translate while it's being animated it animates but won't move. If I disable the animation it transform.Translates just fine.
Can any one solve this? I'm really confused.
Thanks
Answer by POLYGAMe · Feb 18, 2014 at 07:15 PM
Probably because you're trying to move the camera twice at the same time. Try putting the animation on the camera and make the camera a child of another empty game object that you use to move. I haven't used animations but I'm guessing you can set them to use local, rather than world space, so that you wouldn't get this same behaviour? So basically, the camera itself would shake, whilst it would be moved around by its parent object.
Your answer