Project 3D position on a 2D surface

I am having a hard time wrapping my head around this… already tried with some help from @amir, but I am still struggling.

Basically I have a 3D position in space and a plane that I can move around freely. For my purpose I need the 3D position of the closest point between the plane and the other position (to calculate the distance between both points), as well as the 2D position on the plane to draw a dot of the projected position.

textureprojection
Projected3DPoint.vl (23.6 KB)

Is anybody able to quickly help me out on this?

here you go (projected and in 3D):


Projected3DPoint_Variant.vl (50.1 KB)

2 Likes

something similar, no plane rotation though.
line 3d intersect.vl (37.6 KB)

Added a variation for the 3D part of @motzi 's approach which afaict also works when the plane is translated .

Projected3DPoint_Variant_b.vl (67.1 KB)

1 Like