Made cylinder tops flatter

This commit is contained in:
andreja6
2019-11-11 16:05:31 -08:00
parent 3035478c77
commit c9e79c2063

View File

@@ -841,8 +841,8 @@ void PartInstance::render(RenderDevice* rd) {
for(int i = 0; i < 13; i++) for(int i = 0; i < 13; i++)
{ {
//Get the next point //Get the next point
float y = radius * cos(((double)i-0.523599) * pi()/6); float y = radius * cos(((double)i-G3D::toRadians(29)) * pi()/6);
float z = radius * sin(((double)i-0.523599) * pi()/6); float z = radius * sin(((double)i-G3D::toRadians(29)) * pi()/6);
xy[i] = Vector2(y,z); xy[i] = Vector2(y,z);
} }
for(int i = 0; i < 12; i++) for(int i = 0; i < 12; i++)