I'm making a side scrolling shooter. right now the bullet is shooting towards the screen and I want it to be shooting forward. I'll put my shooting code down below. I'm not sure what I need to put to change the direction of the bullet. Any help is welcome.
if(Input.GetMouseButtonDown(1)) {
var bullit = Instantiate(bullitPrefab, GameObject.Find
("spawnPoint").transform.position, Quaternion.identity);
bullit.rigidbody.AddForce(transform.forward * 2000);
}
The spawnPoint is my bullet prefab if thats any help I'm really new to all this programming stuff, I'm an artist....