I need to create a methiod to click in two points of the scene and getting the distance between then. Do you know any demo or code for this ? Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Sergio you can take a look at the
\Samples\collisions\meshhit for selecting points
Samples\collisions\RayBox for intersecting
and for calculate distance you have this :
I need to create a methiod to click in two points of the scene and getting the distance between then. Do you know any demo or code for this ? Thanks in advance
Hi Sergio you can take a look at the
\Samples\collisions\meshhit for selecting points
Samples\collisions\RayBox for intersecting
and for calculate distance you have this :
in GLVectorGeometry.Pas and some others useful functions :)
You have also 2 or 3 samples in GLSAsm repo there can help you but not rememeber what they are.
(ouch not sur it's a good english sentence, sorry )
Thanks Jerome. Reading your text I remebered something . Click the screen >>> Ponit to Vector and then VectorDistance / Vector Subtract