New answers tagged

0

Just for those who will search an answer and uses XMVector3Project. For resolving this problem I increased viewport size. This helped me to get 2D coordinates of 3D points out of screen(in my case 65536.f was enough): XMVECTOR point2D = XMVector3Project( Point3D, -65536.f, -65536.f, 65536.f, 65536.f, -1.f, 1.f, ProjectionMatrix, ViewMatrix, WorldMatrix ); ...


0

The dot product has two nice properties for collision avoidance. The dot product is closely related to the cosine of the angle between two vectors. The dot product of a unit vector A and a second vector B of any non-zero length, the result is the length of vector A projected in the direction of vector B. So as you can see in the image; if the angle is ...



Top 50 recent answers are included