@Override
	public Model getRotatedModel() {
		Model model = animation.getModel();
		if (model == null)
			return null;
		int frameId = -1;
		if (animation.sequences != null)
			frameId = animation.sequences.frame2Ids[animationFrame];
		Model rotatedModel = new Model(true, Animation.isNullFrame(frameId),
				false, model);
		if (frameId != -1) {
			rotatedModel.createBones();
			rotatedModel.applyTransformation(frameId);
			rotatedModel.triangleSkin = null;
			rotatedModel.vertexSkin = null;
		}
		if (animation.scaleXY != 128 || animation.scaleZ != 128)
			rotatedModel.scaleT(animation.scaleXY, animation.scaleXY,
					animation.scaleZ);
		rotatedModel.rotateX(rotationX);
		rotatedModel.applyLighting(64 + animation.modelLightFalloff,
				850 + animation.modelLightAmbient, -30, -50, -30, true);
		return rotatedModel;
	}