mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
spelling: transform
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -112,7 +112,7 @@ int main()
|
|||||||
lastEntity->addChild(model);
|
lastEntity->addChild(model);
|
||||||
lastEntity = lastEntity->children.back().get();
|
lastEntity = lastEntity->children.back().get();
|
||||||
|
|
||||||
//Set tranform values
|
//Set transform values
|
||||||
lastEntity->transform.setLocalPosition({ 10, 0, 0 });
|
lastEntity->transform.setLocalPosition({ 10, 0, 0 });
|
||||||
lastEntity->transform.setLocalScale({ scale, scale, scale });
|
lastEntity->transform.setLocalScale({ scale, scale, scale });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ int main()
|
|||||||
ourEntity.addChild(model);
|
ourEntity.addChild(model);
|
||||||
lastEntity = ourEntity.children.back().get();
|
lastEntity = ourEntity.children.back().get();
|
||||||
|
|
||||||
//Set tranform values
|
//Set transform values
|
||||||
lastEntity->transform.setLocalPosition({ x * 10.f - 100.f, 0.f, z * 10.f - 100.f });
|
lastEntity->transform.setLocalPosition({ x * 10.f - 100.f, 0.f, z * 10.f - 100.f });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user