Modifier reordering
This commit is contained in:
@@ -20,9 +20,9 @@ import static arc.Core.camera;
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class BlockRenderer implements Disposable{
|
||||
private final static int initialRequests = 32 * 32;
|
||||
private final static int expandr = 9;
|
||||
private final static Color shadowColor = new Color(0, 0, 0, 0.71f);
|
||||
private static final int initialRequests = 32 * 32;
|
||||
private static final int expandr = 9;
|
||||
private static final Color shadowColor = new Color(0, 0, 0, 0.71f);
|
||||
|
||||
public final FloorRenderer floor = new FloorRenderer();
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class FloorRenderer implements Disposable{
|
||||
//TODO find out number with best performance
|
||||
private final static int chunksize = mobile ? 16 : 32;
|
||||
private static final int chunksize = mobile ? 16 : 32;
|
||||
|
||||
private Chunk[][] cache;
|
||||
private MultiCacheBatch cbatch;
|
||||
|
||||
@@ -9,7 +9,7 @@ import arc.util.*;
|
||||
|
||||
//TODO this class is a trainwreck, remove it
|
||||
public class IndexedRenderer implements Disposable{
|
||||
private final static int vsize = 5;
|
||||
private static final int vsize = 5;
|
||||
|
||||
private Shader program = new Shader(
|
||||
"attribute vec4 a_position;\n" +
|
||||
|
||||
@@ -7,12 +7,12 @@ public class InverseKinematics{
|
||||
private static final Vec2[] mat1 = {new Vec2(), new Vec2()}, mat2 = {new Vec2(), new Vec2()};
|
||||
private static final Vec2 temp = new Vec2(), temp2 = new Vec2(), at1 = new Vec2();
|
||||
|
||||
static public boolean solve(float lengthA, float lengthB, Vec2 end, boolean side, Vec2 result){
|
||||
public static boolean solve(float lengthA, float lengthB, Vec2 end, boolean side, Vec2 result){
|
||||
at1.set(end).rotate(side ? 1 : -1).setLength(lengthA + lengthB).add(end.x / 2f, end.y / 2f);
|
||||
return solve(lengthA, lengthB, end, at1, result);
|
||||
}
|
||||
|
||||
static public boolean solve(float lengthA, float lengthB, Vec2 end, Vec2 attractor, Vec2 result){
|
||||
public static boolean solve(float lengthA, float lengthB, Vec2 end, Vec2 attractor, Vec2 result){
|
||||
Vec2 axis = mat2[0].set(end).nor();
|
||||
mat2[1].set(attractor).sub(temp2.set(axis).scl(attractor.dot(axis))).nor();
|
||||
mat1[0].set(mat2[0].x, mat2[1].x);
|
||||
|
||||
Reference in New Issue
Block a user