Merge pull request #4226 from ScottMCarr/model-viewer-update
Model Viewer Improvements and Additions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user