Merge pull request #4226 from ScottMCarr/model-viewer-update

Model Viewer Improvements and Additions
This commit is contained in:
Adam
2018-07-15 10:36:20 -04:00
committed by GitHub
6 changed files with 361 additions and 125 deletions

View File

@@ -601,4 +601,15 @@ public class ModelDefinition
}
}
public void move(int xOffset, int yOffset, int zOffset)
{
for (int i = 0; i < this.vertexCount; i++)
{
this.vertexPositionsX[i] += xOffset;
this.vertexPositionsY[i] += yOffset;
this.vertexPositionsZ[i] += zOffset;
}
this.reset();
}
}