Hi, I got a very weird issue that makes no sense to me I’ve tried to fix it myself but i honestly cant figure out why this is happening so i turn to you mighty power of unity forums. Anyway… Here’s the issue i got this code and it works perfectly when the player/character is moving, but if i try and shoot while the player is stationary nothing happens? (bullet does not move)
I’m guessing you have the above code in an Update method. I just tested and I have it working fine on my end. I instead used a 3rd-person transform for the bullet’s instantiated position and rotation.
Problem fixed, It was another script that i used to detect if the bullet hit something that deleted the bullet because it would sometimes collide with the gun