- Home /
In my gun script the bullets aren't hitting the correct area.
I'm using Raycasts to shoot my weapons and the bullets only shoot in this on direction (My camera isn't attached to my player rig don't know if there is any reason that would mess it up) can anyone help me this is one of the main things in my game I need to work for it to be really fun. Thank you!
Physics.Raycast(fpsCam.transform.position, fpsCam.transform.forward, out hit))
This is the code for shooting at the correct position
Comment