Problem with bullets following camera
Hey, I'm making a fps game. Now i'm trying to shoot bullets where the camera is looking at and I have a small problem. When i shoot and move the camera on left side, for example, bullets are still moving the camera (turning left). I don't know how to solve this, I'm newbie at coding.
I give you code lines which are making bullets move:
transform.position = transform.position + Camera.main.transform.forward * projectileSpeed * Time.deltaTime;
Please help me, I want to learn C# but with some problems I don't know what I can do
Comment
Put your camera as a child of an empty and have th empty rotate separately while the Cam follows the bullet