standard order of scale/translation

This commit is contained in:
Nick Fisher
2022-09-06 19:37:39 +10:00
parent ea39d8c25d
commit 1bade94c32
2 changed files with 5 additions and 1 deletions

View File

@@ -290,7 +290,7 @@ void SceneAsset::transformToUnitCube() {
void SceneAsset::updateTransform() {
auto &tm = _engine->getTransformManager();
auto transform =
math::mat4f::scaling(_scale) * _position * _rotation;
_position * _rotation * math::mat4f::scaling(_scale);
tm.setTransform(tm.getInstance(_asset->getRoot()), transform);
}