I have a projectile weapon in an fps game, currently projectiles are shooting out of the camera rather than the weapon itself but I cant figure out how to make the projectiles shoot out of the weapon while still shooting where you are aiming
(red is where the bullets are currently coming out of and the green is where i want them to come out of)
I am using a raycast3d to find the direction and rotation of the bullets
Sorry if I wasn’t specific enough, yes it can come from the hand, but when it does it doesn’t necessarily shoot toward the middle of your screen / where your aiming, I can make it shoot from the hand easily it just won’t go where you want it to
I see the issue now, you are shooting towards some the center but if its starting at the hand position it will have an angle.Sry no idea how you would fix that,only idea i have is if you make a small animation towards the center and still spawn it in the red circle maybe a little bit further.
Also maybe a messy fix, you could try multiplying the direction(or position?) you are aiming at by a big number.i think that would reduce the angle by a bit