Hi all,
I’m looking into distance fields as a solution for some custom collisions.
Some of what I read has the distance field as a 3 dimensional array of signed distance float values, to calculate the position of the closest point on a surface given a point the field is sampled multiple times at that point with small deltas to get a gradient and determine the position from that.
Other than having 4x the data, is there any reason I couldn’t/shouldn’t have my distance field data be arrays of Vector4s, where x,y,z represents the vector from the point to the surface, using w for signed distance?