How do you, say, given a vector in a gravitational field, reflect or alter the vector, by the vector of the gravity? Ie if the gravity vector gives a plane and you want to make the vector perpendicular to the gravity vector but as close as possible to the original? Doing this for https://github.com/dmdware/f69 as per http://gsjournal.net/Science-Journals/Essays-Relativity Theory/Download/6866 walk space generation.
Also how do you sometimes give it a little bit of an offset off the plane, eg by a 3 degree offset up above or -3 for below the plane along the original forward direction but off the perpendicular to gravity plane now.
The other thing I wanted was to make the vector follow an iso-contour line along its original path, which I can do. Also if anybody is familiar with eg ray tracing I need to also refract the vector by the gravity vector acting as the increasing-density refractive medium, with the refractive indices being the gravity magnitudes at those places, and I'm not sure if it should be a dot product that is along the vector corresponding with the gravity vector, or the whole gravity vector itself. Also I'm not sure if the best results will be obtained by keeping all the resulting vectors on the original forward path, only reflected or altered by the plane in question, but I think it is best for making a mesh surface.
↧