- Home /
Question by
unity_AmSezFmN7VbhDQ · Nov 13, 2020 at 12:03 PM ·
lightingcamera-movementfirst-person-controllerpoint light
How do I get a point light to move vertically with the camera?
I have a flashlight essentially, think slenderman or something. It moves with the character fine and I can turn around and the light will follow, turn and all, everything works horizontially, but not vertically, how can I fix this? Like when I look up, the light does not follow.
Comment
Answer by Duckocide · Nov 13, 2020 at 02:17 PM
Can you place the flashlight as a child (game object) of the Camera? Once it's a child object, clear the local angles (zero) - It will always then point the same way as the camera.