how to make gun shoot without using physics C#

i want to use two spawnpoints to calculate direction, use also bulletprefab ,and fire when click … i want to normalizing or raycast…but i dont want to use physics to transform

I’m sure this question has been answered many times, but may Google search did not turn up much. Assuming no gravity, you can make a bullet move by putting this in Update:

transform.Translate(transform.forward * speed * Time.deltaTime);

Based on your “two spawnpoints to calculate direction,” I’m assuming you have one game object (spawn point) as the source of the bullet, and a second game object to indicate the direction from the first. And assuming you are doing an Instantiate() for the bullet, to fire it you would do this on your spawn point:

transform.LookAt(aimPoint.transform);
Instantiate(bullet, transform.position, transform.rotation);

public class TestBullet : MonoBehaviour {
public Transform bullet;
public Transform target;
float speed =10;
Vector3 v3;
// Use this for initialization
void Start () {

}
// Update is called once per frame
void Update () {
	
	//
	
	if(Input.GetButtonDown("Fire1")){
		transform.Translate(v3 * speed * Time.deltaTime);
		shoot ();
		
		
	}

}

void shoot(){
	v3 = (camera.transform.position - target.transform.position).normalized;
	transform.LookAt(target);
     Instantiate(bullet, transform.position, transform.rotation);
	
}	

}
this my code to instantiate and transform … but when run it i note that bullet not go in the correct direction …And i want code with raycast to destroy target when collision … Plz help me