improved MinimumTranslationVectorTest
M core/src/net/dermetfan/someLibgdxTests/screens/MinimumTranslationVectorTest.java +4 -0
@@ 28,6 28,8 @@ public class MinimumTranslationVectorTes
 	public MinimumTranslationVectorTest() {
 		GeometryUtils.polygonCentroid(polygon.getVertices(), 0, polygon.getVertices().length, centroid);
 		polygon.setOrigin(centroid.x, centroid.y);
+		GeometryUtils.polygonCentroid(polygon2.getVertices(), 0, polygon2.getVertices().length, centroid);
+		polygon2.setOrigin(centroid.x, centroid.y);
 	}
 
 	@Override

          
@@ 37,6 39,8 @@ public class MinimumTranslationVectorTes
 			public boolean scrolled(int amount) {
 				if(UIUtils.ctrl())
 					polygon.setRotation(polygon.getRotation() + amount * 5);
+				else if(UIUtils.shift())
+					polygon2.setRotation(polygon2.getRotation() + amount * 5);
 				else {
 					((OrthographicCamera) viewport.getCamera()).zoom += amount / 25f;
 					viewport.apply();