Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/math/matrix4f.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/math/matrix4f.cc b/src/math/matrix4f.cc
index 4602190..31da2c9 100644
--- a/src/math/matrix4f.cc
+++ b/src/math/matrix4f.cc
@@ -51,9 +51,14 @@ void Matrix4f::assign(const Axis & axis)
for (int i = 0; i < 3; i++) {
memcpy(&_matrix[i][0], axis[i].ptr(), sizeof(float) * 3);
}
+ _matrix[0][3] = 0;
+ _matrix[1][3] = 0;
+ _matrix[2][3] = 0;
+
_matrix[3][0] = 0;
_matrix[3][1] = 0;
_matrix[3][2] = 0;
+
_matrix[3][3] = 1;
}