Browse Source

Fix bug in quat:between edge case;

bjorn 8 years ago
parent
commit
b4dd0f7cd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      maf.lua

+ 1 - 1
maf.lua

@@ -211,7 +211,7 @@ quat = {
         vtmp1.x, vtmp1.y, vtmp1.z = 1, 0, 0
         vtmp1:cross(u)
         if #vtmp1 < .00001 then
-          vtmp1.x, vtmp1.y, vtmp1.y = 0, 1, 0
+          vtmp1.x, vtmp1.y, vtmp1.z = 0, 1, 0
           vtmp1:cross(u)
         end
         vtmp1:normalize()