Skip to content
Snippets Groups Projects
Commit bf0ecedf authored by alexborro's avatar alexborro
Browse files

Merge pull request #1051 from fsantini/EZ_fix935

Fix issue 935: error in matrix calculation
parents 1d62309d cf325ba2
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ matrix_3x3 matrix_3x3::create_look_at(vector_3 target) ...@@ -121,7 +121,7 @@ matrix_3x3 matrix_3x3::create_look_at(vector_3 target)
{ {
vector_3 z_row = target.get_normal(); vector_3 z_row = target.get_normal();
vector_3 x_row = vector_3(1, 0, -target.x/target.z).get_normal(); vector_3 x_row = vector_3(1, 0, -target.x/target.z).get_normal();
vector_3 y_row = vector_3(0, 1, -target.y/target.z).get_normal(); vector_3 y_row = vector_3::cross(z_row, x_row).get_normal();
// x_row.debug("x_row"); // x_row.debug("x_row");
// y_row.debug("y_row"); // y_row.debug("y_row");
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment