Hello
I am working a on a golf game
I am trying to figure out before I have taken a shot, I would like to get the distance remaining to the hole and put it on the UI…
Here is an image - You can see what I mean on bottom left (21)
Any help would be amazing.
Thanks
matt
You can call a “distance”, to calculate the distance between 2 points
Thanks for the reply, there are quite alot of distance nodes, can you be a bit more specific?
If Im remembering correctly, it’s called “distance 2v” is the one I had in mind. It gives you the distance between 2 vectors. At work right now so I can’t check to confirm
Base math is Distance/cm = Vector - Vector -> get vector length
Ball Location - End location…length etc
Node wise its Distance to (A, B)