I have code on fire :
void onFire()
{
Vector3 SpawnPoint = flare.transform.position;
Quaternion SpawnRoot = flare.transform.rotation;
GameObject Bullet = Instantiate (bulletPrefab, SpawnPoint, SpawnRoot) as GameObject;
Rigidbody Run = Bullet.GetComponent<Rigidbody>();
Run.AddForce(Bullet.transform.forward * 2*Time.deltaTime, ForceMode.Impulse);
}
But bullet always position
IIIIIII
IIIIIII <---------- vertical
IIIIIII
IIIIIII
And I need it must apeared in horizontal
How Can I do this?