I have sorted out most of my issues related to shooting, however this issue has me stumped.
On image 2 it is very noticeable, and is something I would like to avoid especially if you are sneaking up behind an enemy and shoot the unfortunate individual in the head.
I have played around with a few settings (ie characterik), however I cant find a solution that works for both distance shots and close and personal shots. I am sure someone must have come across this, and has a solution for me.
So I think my question is, "How do I get green ray to match yellow ray irrespective of distance (when aiming)"?
Image 1
Image 2
- The two images below are separated into scene view on left, game view on right.
- The Green ray is the debug ray from the characterik script.
- The yellow ray is my ray estimating the real force direction.
- The blue ray is the collider impact point from the onimpact event, with force direction.
- The red ray is the collider impact point from the onimpact event, with force -direction.
On image 2 it is very noticeable, and is something I would like to avoid especially if you are sneaking up behind an enemy and shoot the unfortunate individual in the head.
I have played around with a few settings (ie characterik), however I cant find a solution that works for both distance shots and close and personal shots. I am sure someone must have come across this, and has a solution for me.
So I think my question is, "How do I get green ray to match yellow ray irrespective of distance (when aiming)"?
Image 1
Image 2