My knowledge of VEX is fairly newborn. So I'm having a hard time figuring out how I can achieve my goal here. in my vex script, I have a series of float values. These values change depending on the geometry. for the sake of simplicity, let's say this is what I have:
What could I write here to look through those float values and automatically pick whichever one is closest to the target? Thoughts and ideas are very much appreciated. Thanks!
Alternatively you just set the float values as positions of a point cloud and use the nearpoint()-function.
Thanks a lot!
I'm very curious about the point cloud idea, as I had thought of that as well. Though I am unsure how to set the position of points based on those float values. If you have a minute, would you mind breaking that down?