我试图画一些圆圈,但出于某种原因它绘制钻石。
最近的照片: Screenshot
我绘制圆圈的代码部分:
ymove = this.yO + espacioPerCasilla/2;
for (int i=0; i< dimension; i++) {
xmove = this.xO + espacioPerCasilla/2;
for (int j=0; j< dimension ; j++) {
shapeRenderer.setProjectionMatrix(MyGdxGame.camera.combined);
shapeRenderer.begin(ShapeRenderer.ShapeType.Filled);
shapeRenderer.setColor(Color.YELLOW);
shapeRenderer.circle(xmove,ymove,Circulo.calcularRadio(espacioPerCasilla));
shapeRenderer.end();
xmove = xmove + espacioPerCasilla;
}
ymove = ymove + espacioPerCasilla;
}
在打印圆圈之前,我使用线条
绘制网格答案 0 :(得分:2)
我的第一个猜测是你画得太小了 将尺寸提升至至少为两位数。
试试这个circle(float x, float y, float radius, int segments)
使用要绘制的顶点数量的段,使其成为10,并查看它如何改变圆的形状
然后提高它直到它可以接受。