mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
EMI: Complete the skeleton setup
This commit is contained in:
parent
d4413d7f58
commit
99520661cb
@ -218,7 +218,8 @@ void EMIModel::setSkeleton(Skeleton *skel) {
|
||||
vertex = _vertices[i];
|
||||
if (_vertexBoneInfo[_vertexBone[i]] != -1) {
|
||||
mat = _skeleton->_joints[_vertexBoneInfo[_vertexBone[i]]]._absMatrix;
|
||||
// TODO, add in math (inverse translate & rotate the vertex by the matrix)
|
||||
mat.inverseTranslate(&vertex);
|
||||
mat.inverseRotate(&vertex);
|
||||
}
|
||||
_vertices[i] = vertex;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user