Added messed up low performance camera rotation

This commit is contained in:
2019-12-08 18:47:16 +02:00
parent f5d3196828
commit 2f5437396c
8 changed files with 189 additions and 103 deletions
+3 -3
View File
@@ -58,9 +58,9 @@ void Model::ApplyTransform() {
}
void Model::translate(Vec3f tr) {
Translation[0][3] += tr.x;
Translation[1][3] += tr.y;
Translation[2][3] += tr.z;
Translation[0][3] = tr.x;
Translation[1][3] = tr.y;
Translation[2][3] = tr.z;
}
void Model::rotate(Vec3f rot) {
rot = rot * DEG2RAD;