mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix incorrect entity transform scale & rotation combination
This commit is contained in:
parent
3430e5cd6f
commit
b832b9850f
1 changed files with 1 additions and 1 deletions
|
|
@ -31,8 +31,8 @@ static inline std::string SAVED_DATA_VARNAME = "SAVED_DATA";
|
|||
void Transform::refresh() {
|
||||
combined = glm::mat4(1.0f);
|
||||
combined = glm::translate(combined, pos);
|
||||
combined = glm::scale(combined, size);
|
||||
combined = combined * glm::mat4(rot);
|
||||
combined = glm::scale(combined, size);
|
||||
displayPos = pos;
|
||||
displaySize = size;
|
||||
dirty = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue