ld33_umonster
diff src/meshgen.cc @ 2:35349df5392d
wtf?
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 22 Aug 2015 23:55:21 +0300 |
parents | bed0e207acb6 |
children | 7b1fa527b51b |
line diff
1.1 --- a/src/meshgen.cc Sat Aug 22 23:17:57 2015 +0300 1.2 +++ b/src/meshgen.cc Sat Aug 22 23:55:21 2015 +0300 1.3 @@ -412,13 +412,14 @@ 1.4 mesh->clear(); 1.5 1.6 for(int i=0; i<6; i++) { 1.7 - Matrix4x4 xform; 1.8 + Matrix4x4 xform, dir_xform; 1.9 Mesh m; 1.10 1.11 gen_plane(&m, 1, 1, usub, vsub); 1.12 xform.rotate(Vector3(face_angles[i][1], face_angles[i][0], 0)); 1.13 + dir_xform = xform; 1.14 xform.translate(Vector3(0, 0, 0.5)); 1.15 - m.apply_xform(xform); 1.16 + m.apply_xform(xform, dir_xform); 1.17 1.18 mesh->append(m); 1.19 }