public static void TranslateWorld(Vector3 translation)
{
if (_worldMatrixStack.Count != 0)
{
Matrix4 currentMatrix = (Matrix4)_worldMatrixStack.Peek();
_worldMatrixStack.Pop();
currentMatrix *= Matrix4.CreateTranslation(translation);
_worldMatrixStack.Push(currentMatrix);
}
else
{
_worldMatrix *= Matrix4.CreateTranslation(translation);
}
_worldMatrixChanged = true;
}