So, my bullet is always spawning in this rotation:
My spawning script look like:
a = Instantiate(bullet, miejsce, Quaternion.identity) as GameObject;
Changing third argument is seting bullet’s way, not rotation of model(object).
Way of bullet is working good, just got problem with model’s rotation. How to fix it?
adjust the rotation in the model file
Try this code :
shot = Instantiate(bullet, gameObject.Find("spawnPoint").transform.position, Quaternion.identity;
shot.rigidBody.AddForce(transform.foward * 1000);
If this doesnt works go to blender or whatever modeling program and rotate the bullet foward
Hope this helps