#gun shoot code not working
1 messages ยท Page 1 of 1 (latest)
after you Instantiate a new bullet, you should getcomponent the rigidbody from it, and addforce there.
(you can call instantiate with rigidbody type instead of a gameobject as a shortcut)
you're calling bulletRB.AddForce, but bulletRB is pointing at the prefab, not the new instantiated bullet
i fixed it thanks