#gun shoot code not working

1 messages ยท Page 1 of 1 (latest)

lost oriole
#

your addforce is adding to the wrong rigidbody

#

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)

lost oriole
lone crypt
#

i fixed it thanks