From 26c8cf4d74062fb12871ae9d5298d8ceaab7a2cf Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 22 Feb 2015 16:06:03 +0000 Subject: Fixed foot after shooting it. --- src/math/matrix4f.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/math') 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; } -- cgit v1.2.3