- Home /
Question by
brandon4117 · Dec 02, 2013 at 07:09 AM ·
cameraeffectfirst person controller
How do I cause FPS Camera to shake temporarily from walking into an area?
Hi there, I'm new to working with Unity. What I'm basically trying to do is make it so that when the FPS Controller walks into a certain area, the camera for the FPS Controller temporarily shakes, as if an earthquake happened for a second and then have it stop. I'm very limited in what I know for Unity and scripting at the moment, so I really haven't a clue what to do for it. Any help is appreciated.
Comment
Best Answer
Answer by thef1chesser · Dec 02, 2013 at 08:24 AM
There are a couple of ways to get a camera "shaking".
I think Lerp wil give you the best result
http://docs.unity3d.com/Documentation/ScriptReference/Vector3.Lerp.html