tweaks
This commit is contained in:
@@ -70,7 +70,7 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc, Elevatio
|
|||||||
boolean side = i < legs.length/2;
|
boolean side = i < legs.length/2;
|
||||||
//back legs have reversed directions
|
//back legs have reversed directions
|
||||||
boolean backLeg = Math.abs((i + 0.5f) - legs.length/2f) <= 0.501f;
|
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.moving = move;
|
||||||
l.stage = stageF % 1f;
|
l.stage = stageF % 1f;
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
//TODO document
|
//TODO document
|
||||||
public int legCount = 4, legGroupSize = 2;
|
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 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 itemCapacity = 30;
|
||||||
public int drillTier = -1;
|
public int drillTier = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user