Setting an objects instantation rotation?

Hey, I am working on a gun script, the projectile is currently flying up and I want it to instantiate flying forward, by rotating it by 90 degrees x. I am using this script but Im not good enough with Quaternion Euler angles to modify the script in such a way, can anyone help me?

function FireOneBullet ()
{
    var Bullet = Instantiate(Bullet, FirePoint.transform.position, transform.rotation);
    Ammo --;
}

this is best fixed by going into a modelling program and rotating the object so the it’s properly axis aligned (and therefore its forward is it’s forward in unity on import)

YOU DO NOT WANT TO KEEP FIGHTING THIS EVERY TIME YOU WANT TO GET THE BULLETS FORWARD BACKWARD LEFT RIGHT UP AND DOWN.

Rotate in blender and re-import.

mark as answered please :slight_smile:

Use FirePoint.transform.rotation, and make sure the object FirePoint is pointing in the desired direction:

var Bullet = Instantiate(Bullet, FirePoint.transform.position, FirePoint.transform.rotation);

If the bullet is still going in the wrong direction, rotate FirePoint in the Editor to fix this.