-Fixed objects of variable width and length from being positioned incorrectly on the map.
-Renamed LocationKey to ModelKey and added another field so that cached values are correct for objects using the same models. -Implemented shading to the scene. -Implement full SceneTilePaint with variable colors and textures. -Implement textures while rendering SceneTileModel -Enable maps to be loaded by their region id instead of just their coordinates. -Implement full object model creation (replacement colors, replacement textures, resizing, translation) -Added two new methods to ModelDefinition used in object model creation.
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