How can i change the raycast point from my cam to the shootpoint when i aim down sight

m making a fps and when ever i aim up or down with my ar i still shoot in the centre of the gun and since the when i aim the gun is in the centre then switching the raycast to my shootpoint will be ok but i donw know how to.

When you draw the ray, just draw it from the point instead. The regular Raycast method takes an origin point.