Imagination PowerVR SDK Blog

Animation


#1

Hi,





How to change the Transformation matrix.


I am using the PowerVR sdk for IOS.





Thanks


Pascal.


#2

I found the answer. This is what I did and let me know if it the good way.





                    PVRTMATRIX r;


                    PVRTMatrixIdentity®;


                    PVRTMatrixRotationX(r, a);


                    


                    PVRTMATRIX* anim = (PVRTMATRIX*)pMesh->getNode()->pfAnimMatrix;


                    PVRTMatrixMultiply(*anim, r, *anim);





Pascal.


#3

And also use GetWorldMatrixNoCache instead of GetWorldMatrix