mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
fix rotation&translation order (#101)
This commit is contained in:
parent
e19ecf4770
commit
96b8732d91
@ -1021,7 +1021,7 @@ namespace Unity_Studio
|
||||
}
|
||||
float d = Math.Max(1e-5f, dist.Length);
|
||||
Vector3 scale = new Vector3(2f / d);
|
||||
modelMatrixData = Matrix4.CreateScale(2f / d) * Matrix4.CreateTranslation(-offset);
|
||||
modelMatrixData = Matrix4.CreateTranslation(-offset) * Matrix4.CreateScale(2f / d);
|
||||
#endregion
|
||||
#region Indicies
|
||||
indiceData = new int[m_Mesh.m_Indices.Count];
|
||||
|
Loading…
Reference in New Issue
Block a user