var punchPrefab:Transform;
function FixedUpdate(){
if(Input.GetButtonDown("Fire1"))
{
var punch = Instantiate(punchPrefab, GameObject.Find("spawn").transform.position, Quaternion.identity);
punch.tag = "bullet";
punch.rigidbody.AddForce(transform.forward * 50000);
}
}
this is the script i use to fire a prefab but it always spawns it facing the prefab direction, is there a way to spawn it in the direction i am facing... thank u for your help...