Point 2 Plane projection controller
Wonder how to create script controller for orthogonal projection to a point helper onto grid helper.
I just have a piece of code like
The projection of a point q = (x, y, z) onto a plane given by a point p = (a, b, c) and a normal n = (d, e, f) is
q_proj = q - dot(q - p, n) * n
This calculation assumes that n is a unit vector.
But dont know how to put it in controller.