For instance, I don't know what player->mouselocal(...) does.
the player->mouselocal(...) [font="arial, sans-serif"]given parameters such as viewport, etc...
[font="arial, sans-serif"]
void SKINNEDMESH::mouselocal(D3DXVECTOR3 pos, int Width, D3DXMATRIX pm, D3DXMATRIX vm, D3DVIEWPORT9 vp)
{
mouseLocation = pos;
m_Width = Width;
m_pm = pm;
m_vm = vm;
m_vp = vp;}
[font="arial, sans-serif"]
Also, you're still rotating the arm about the Y axis. Did you determine that's the correct axis to rotate about?[font="arial, sans-serif"]
[font="arial, sans-serif"]Yes, I tested the three axis and the axis is correct to rotate the Y
[font="arial, sans-serif"]
[font="arial, sans-serif"][font="arial, verdana, tahoma, sans-serif"]
[font="arial, sans-serif"][font="arial, verdana, tahoma, sans-serif"]I would suggest, for clarity:</blockquote><br /> [font="arial, sans-serif"][font="arial, verdana, tahoma, sans-serif"][font="arial, sans-serif"]I need to study a way of passing 'the handle' for my class, so I can use theScreenToClient