I have 2
objects One Having a Transformation Matrix T1
and other Having Transformation Matrix T2
. And We are having a View Matrix V
and Projection Matrix P
.
Basically 2 Object are render using this function
Render(vec3 position,X Rotation , Y Rotation, Z Rotation, Scaling);
So i am having 2 different T1
and T2
transformation matrix.
How should i find the distance between these
2
objects ?
Please Explain ?
I have tried by simple formula using position vector but it is giving me incorrect distance ?