This commit is contained in:
Anuken
2020-06-08 11:52:14 -04:00
parent 1f905790e7
commit cac6041583
2 changed files with 2 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc, Elevatio
boolean side = i < legs.length/2;
//back legs have reversed directions
boolean backLeg = Math.abs((i + 0.5f) - legs.length/2f) <= 0.501f;
if(backLeg) side = !side;
if(backLeg && type.flipBackLegs) side = !side;
l.moving = move;
l.stage = stageF % 1f;

View File

@@ -47,6 +47,7 @@ public class UnitType extends UnlockableContent{
//TODO document
public int legCount = 4, legGroupSize = 2;
public float legLength = 10f, legSpeed = 0.1f, legTrns = 1f, legBaseOffset = 0f, legMoveSpace = 1f, legExtension = 0, legPairOffset = 0, legLengthScl = 1f, kinematicScl = 1f;
public boolean flipBackLegs = true;
public int itemCapacity = 30;
public int drillTier = -1;