- Home /
How do I make my flashlight follow the camera when moving?
How can i get my flashlight to slowly follow my camera like this: http://www.youtube.com/watch?v=kF_tZhTI9uo&list=SPA93FDD89EA2F639A∈dex=14 Look at the way the flashlight follows the player AFTER moving. Thanks! (You don't have to give me a script but just try to tell me what i need to do in as much detail as possible)
Answer by robertbu · Feb 27, 2013 at 07:32 AM
I have to lol. I just posted an answer a couple of minutes ago and took a look at your question next. He was asking for something different, but as it turns out I believe the same script (without changes) will work for you too. If the light needs to be in front of the camera instead of at the camera position, follow the instructions for using an empty game object.
http://answers.unity3d.com/questions/407263/a-smooth-single-axis-rotaion-fps-camera.html
Answer by Maulik2208 · Feb 27, 2013 at 09:39 AM
Use vector3.lerp or have you tried with parenting the Flashlight to the player? Vector3.lerp with respect to the position of the player for a smooth follow type things.
Don't forget to mark the answer if found useful....Enjoy....Cheers.....
Your answer
Follow this Question
Related Questions
Rotate flashlight. 1 Answer
camera follow - no rotation 0 Answers
How to make a camera follow a sphere without rotating with it. 1 Answer
Moving sphere tremble in moving camera view[Solved] 0 Answers