Przeglądaj źródła

defaultUnitCube centered

ncannasse 7 lat temu
rodzic
commit
c18c36ab2c
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      h3d/prim/Cube.hx

+ 1 - 0
h3d/prim/Cube.hx

@@ -93,6 +93,7 @@ class Cube extends Polygon {
 		if( c != null )
 		if( c != null )
 			return c;
 			return c;
 		c = new h3d.prim.Cube(1, 1, 1);
 		c = new h3d.prim.Cube(1, 1, 1);
+		c.translate(-0.5,-0.5,-0.5);
 		c.addNormals();
 		c.addNormals();
 		c.addUniformUVs(1.0);
 		c.addUniformUVs(1.0);
 		@:privateAccess engine.resCache.set(Cube, c);
 		@:privateAccess engine.resCache.set(Cube, c);