Hello everyone, i’m trying to create emtpy shells after i fire, and adding them some force to spread, but i have a problem. My code is :
var newshell =Instantiate(shell,shellspreader.transform.position,Quaternion.identity);
newshell.transform.Rotate(new Vector3(0,0,Random.Range(-180,180)));
newshell.transform.Rotate(new Vector3(0,-90,0));
newshell.rigidbody.AddForce(1000,0,0);
everything is OK,almost, there is one thing. When i fire, the shell goes to the right at 1000 force as i wanted, when i turn right in 90 degrees and fire,shells go forward at 1000, when i turn right in 180 degrees(which is my back) , the shells go left at 1000 force, when i turn right in 270 degrees, or left in 90 degrees the same, shells go back, it’s like they always want to go to the same direction. Here is the photo explanation about my problem :

any ideas how to fix it ?
Thanks ![]()