model-viewer/src/main/java/net/runelite/modelviewer/ModelManager.java
// this logic is from method3697 in 140
this logic is from method3697 in 140
this logic is from method3697 in 140
private static void rotate(ModelDefinition md, ObjectDefinition object, Location location, int rot)
	{
		if (object.getObjectTypes() == null)
		{
			boolean isRotate = object.isRotated();
			if (location.getType() == 2 && rot > 3)
			{
				isRotate = !isRotate;
			}
			if (isRotate)
			{
				md.method1493();
			}
		}
		else
		{
			boolean isRotate = object.isRotated() ^ rot > 3;
			if (isRotate)
			{
				md.method1493();
			}
		}
		switch (rot & 3)
		{
			case 1:
				md.rotate1();
				break;
			case 2:
				md.rotate2();
				break;
			case 3:
				md.rotate3();
				break;
		}
	}
private static void rotate ( ModelDefinition md , ObjectDefinition object , Location location , int rot ) { if ( object . getObjectTypes ( ) == null ) { boolean isRotate = object . isRotated ( ) ; if ( location . getType ( ) == 2 && rot > 3 ) { isRotate = ! isRotate ; } if ( isRotate ) { md . method1493 ( ) ; } } else { boolean isRotate = object . isRotated ( ) ^ rot > 3 ; if ( isRotate ) { md . method1493 ( ) ; } } switch ( rot & 3 ) { case 1 : md . rotate1 ( ) ; break ; case 2 : md . rotate2 ( ) ; break ; case 3 : md . rotate3 ( ) ; break ; } }
this logic is from method3697 in 140
this logic is from method3697 in 140