public void update() {
if (needScale || needRotation || needTranslation) {
lastMatrix.setData(matrix);
if (needScale) {
N3Matrix4D scaleMatrix = new N3Matrix4D();
scaleMatrix.scale(scale);
matrix.mult(scaleMatrix);
needScale = false;
}
if (needRotation) {
N3Matrix4D rotationMatrix = new N3Matrix4D();