How do I find the closest point on a specific side of a bounding box?

I am trying to ‘draw’ an object between two points. This is working fine, but I would like the objects start/end positions to be the furthest right and left, respectively, of the objects that they are drawn between.

You should look at

or just

Hi @IvovdMarel,

Thanks so much for your response. I was looking at this, but haven’t been able to get it to work in my particular scenario.

I have a cube and I cast a ray hitting the front of it. I now need to know where the corresponding vector3 is it on the right side of the cube.

99847-untitled-drawing.png

Hello @BiffJenkins, im working on something similiar, did you ever find a way to solve your problem?
Thankyou!