Just wanting to throw this out but if you want the arrow to hit a little bit higher, like say right in the middle of the sternum, lower the 2 in the formula. Should look like this:
return target.position + Vector3.up * targetCapsule.height / 1.5f;
Remember to use f after the number on the end so that way you don’t get yelled at by Visual Studio.