Skip to content
Snippets Groups Projects
Commit da1f2f9e authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

neg number issue

parent 20bbc6bb
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@
position.x = indices.x*scale;
position.y = indices.y*triHeight;
position.z = indices.z*octHeight;
if (indices.y%2 == 1) position.x -= scale/2;
if (indices.z%2 == 1) position.y -= triHeight*4/3;
if (Math.abs(indices.y%2) == 1) position.x -= scale/2;
if (Math.abs(indices.z%2) == 1) position.y -= triHeight*4/3;
return position;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment