I have two objects, and I’m trying to find the distance between them. I hope this is possible, and if at all possible I would like a single digit number. Kinda like the getlinearvelocity for physics objects.
Thanks for any help, sorry if it is hard to understand.
(For the distance between the meshes centers…) take world (absolute) position vector of mesh 1 and subtract world (absolute) position vector of mesh, then take the length() function.
Cool @withADoveInOneHand ! That function Distance on Vector3 will save me some code lines on making the Math myself. From time to time, new functions appear in the API (at least to me) that make my code easier and smaller. Whoohoo
Thanks for the online PDF copy of the book @Givo I had bought the book already earlier with my business budget to show support to the author. And as a expert on several business and IT topics I get send most books for free anyways to review…