Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-02-22 16:06:03 +0000
committerStijn Buys <ingar@osirion.org>2015-02-22 16:06:03 +0000
commit26c8cf4d74062fb12871ae9d5298d8ceaab7a2cf (patch)
tree747fbb3eac2fb5e937142f69842edcbb6b7006ca
parentf14bfe36478e7d581eba54a678b3da5863706b37 (diff)
Fixed foot after shooting it.
-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;
}