| 592 | } |
| 593 | |
| 594 | xVec3 xModelGetBoneLocation(const xModelInstance& model, size_t index) |
| 595 | { |
| 596 | xMat4x3& root_mat = *(xMat4x3*)model.Mat; |
| 597 | xMat4x3& anim_mat = *(xMat4x3*)(model.Mat + index); |
| 598 | if (index == 0) |
| 599 | { |
| 600 | return root_mat.pos; |
| 601 | } |
| 602 | xVec3 ret; |
| 603 | xMat4x3Toworld(&ret, &root_mat, &anim_mat.pos); |
| 604 | return ret; |
| 605 | } |
| 606 | |
| 607 | void xModelGetBoneMat(xMat4x3& mat, const xModelInstance& model, size_t index) |
| 608 | { |
no test coverage detected