Distance to origin

Hi guys, I am calculating a 3d point on a face:

enter image description here

How can I get the distance to the origin from V1 either along the Y axis or along the face normal that I hit?

I presume you mean the object origin and are referring to local coordinates. If so, the Y-axis distance is simply “Y.” Strictly speaking a face-normal (projected from the center of the face) is unlikely to intersect the object’s local (0,0,0) at all. Can you re-phrase your question or give us an example with numbers?

No I mean the origin of the coordinate system (0,0,0). What I need is the distance (float) to this origin from the 3d vertex that hits the face along the face’s normal.