Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector BonePos;
- Vector OutPos;
- matrix3x4_t BoneMatrix[128];
- for (int i = 0; i < 128; i++)
- {
- AngleMatrix(Vector(0, urfakeangle, 0), BoneMatrix[i]);
- MatrixMultiply(BoneMatrix[i], pCustomBoneToWorld[i]);
- BonePos = Vector(pCustomBoneToWorld[i][0][3], pCustomBoneToWorld[i][1][3], pCustomBoneToWorld[i][2][3]) - pInfo.origin;
- VectorRotate(BonePos, Vector(0, urfakeangle, 0), OutPos);
- OutPos += pInfo.origin;
- BoneMatrix[i][0][3] = OutPos.x;
- BoneMatrix[i][1][3] = OutPos.y;
- BoneMatrix[i][2][3] = OutPos.z;
- } oDrawModelExecute(thisptr, ctx, state, pInfo, BoneMatrix); // CALL UR ORIGINL HERE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement