For the gun, have you tried messing with your “offset” float value? Hit play and try changing it to see if thats the issue.
Here is a tutorial that should help if that advice above doesnt work.
When I change offset float value, my gun does start pointing towards the mouse, but the bullets as you can see in the picture are shot from the upper side of the gun and not from the barrel. Shot point is shooting upwards.
(BTW, I used this video only for reference.)
Then you should adjust your shotPoint to balance your Offset value. You will need to mess with both to get it facing the right direction. As for the bullets, try something like this: https://answers.unity.com/questions/1352925/rotate-projectile-sprite-in-the-direction-it-is-fl.html
1 Like