working puzzle editor?
This commit is contained in:
@@ -78,7 +78,15 @@ void Transform::UpdateMatrix()
|
||||
bx::mtxScale(scale.M, Scale.x, Scale.y, Scale.z);
|
||||
Mat4 temp;
|
||||
bx::mtxMul(temp.M, scale.M, Rotation.M);
|
||||
bx::mtxMul(M.M, pos.M, temp.M);
|
||||
bx::mtxMul(M.M, temp.M, pos.M);
|
||||
bx::mtxInverse(MI.M, M.M);
|
||||
}
|
||||
|
||||
void Transform::UpdateMatrixForCam()
|
||||
{
|
||||
Mat4 pos;
|
||||
bx::mtxTranslate(pos.M, Position.x, Position.y, Position.z);
|
||||
bx::mtxMul(M.M, pos.M, Rotation.M);
|
||||
bx::mtxInverse(MI.M, M.M);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user