Quaternions in C#

ok so I’m trying to instantiate a bullet and I want it to fly off to the side at a 30 degree angle (may change later idk) I’m kinda new to Euler’s and Quaternions in general, I’ve only ever really used Quaternion.identity, so idk if I’m doing this right or not.

GameObject _go = Instantiate(bPref, temp.transform.position, Quaternion.Euler(0,30,0)) as GameObject;

that’s the code. does that look correct? I have this in a script attached to the bullets.

gameObject.rigidbody.AddForce(Vector3.forward * 1000);

that fires off in the Start() area of the script. the bullet moves and acts as it should except it goes straight from where my player that instantiates it is (instead of at a 30 degree angle).

anyone see my problem?

instead of Vector3.forward * 1000 use transform.forward * 1000

that is because Vector3.forward is (0 , 0, 1) in world (or global) coordinates.