D3D9 crew – getting position of object rendered by DrawIndexedPrimitive?
What is the correct method of finding the location of an object rendered by DrawIndexedPrimitive?
I have tried using GetTransform and hooking SetTransform, but they always return a matrix of:
1000
0100
0010
0001
Here is an example of my SetTransform hook:
HRESULT APIENTRY hkIDirect3DDevice9::SetTransform(D3DTRANSFORMSTATE TYPE State, CONST D3DMATRIX *pMatrix)
{
if (State == D3DTS_WORLD){
[...]