So I am instantiating bullets out of an emitter I have in front of my gun, but instead of to changing direction with the gun it seems to be going in a direction based on how my character is moving. (if that makes sense) So if I move to the right the bullet will travel more to the right, and if i move to the left the bullet will travel in a direction more to the left, but looking around does not affect the direction? Any help is very much appreciated!
This is my script for the instantiate:
GameObject instBullet = Instantiate(bullet, emitter.transform.position, Quaternion.LookRotation(Camera.main.transform.position, Vector3.forward)) as GameObject;