|
@@ -27,10 +27,10 @@ namespace bbiwarg.Graphics
|
|
|
GL.Color4(color);
|
|
|
|
|
|
GL.Begin(BeginMode.Polygon);
|
|
|
- GL.Vertex3(position.x - size, position.y + size, -position.z);
|
|
|
- GL.Vertex3(position.x + size, position.y + size, -position.z);
|
|
|
- GL.Vertex3(position.x + size, position.y - size, -position.z);
|
|
|
- GL.Vertex3(position.x - size, position.y - size, -position.z);
|
|
|
+ GL.Vertex3(position.x - size/2, position.y + size/2, -position.z);
|
|
|
+ GL.Vertex3(position.x + size/2, position.y + size/2, -position.z);
|
|
|
+ GL.Vertex3(position.x + size/2, position.y - size/2, -position.z);
|
|
|
+ GL.Vertex3(position.x - size/2, position.y - size/2, -position.z);
|
|
|
GL.End();
|
|
|
}
|
|
|
|
|
@@ -39,10 +39,10 @@ namespace bbiwarg.Graphics
|
|
|
|
|
|
List<Vector> result = new List<Vector>();
|
|
|
|
|
|
- result.Add(new DenseVector(new float[] { position.x - size, position.y + size, -position.z }));
|
|
|
- result.Add(new DenseVector(new float[] { position.x + size, position.y + size, -position.z }));
|
|
|
- result.Add(new DenseVector(new float[] { position.x + size, position.y - size, -position.z }));
|
|
|
- result.Add(new DenseVector(new float[] { position.x - size, position.y - size, -position.z }));
|
|
|
+ result.Add(new DenseVector(new float[] { position.x - size/2, position.y + size/2, -position.z }));
|
|
|
+ result.Add(new DenseVector(new float[] { position.x + size/2, position.y + size/2, -position.z }));
|
|
|
+ result.Add(new DenseVector(new float[] { position.x + size/2, position.y - size/2, -position.z }));
|
|
|
+ result.Add(new DenseVector(new float[] { position.x - size/2, position.y - size/2, -position.z }));
|
|
|
|
|
|
return result;
|
|
|
|