This commit is contained in:
Anuken 2020-08-22 09:08:27 -04:00
parent 9224120f5b
commit 29e0d4f2c2
2 changed files with 1 additions and 6 deletions

View File

@ -850,11 +850,6 @@ public class MobileInput extends InputHandler implements GestureListener{
movement.set(targetPos).sub(player).limit(speed);
movement.setAngle(Mathf.slerp(movement.angle(), unit.vel.angle(), 0.05f));
//pathfind for ground units
if(!flying && !type.canBoost && !(unit instanceof WaterMovec)){
movement.set(targetPos).sub(unit).limit(speed);
}
if(player.within(targetPos, attractDst)){
movement.setZero();
unit.vel.approachDelta(Vec2.ZERO, type.speed * type.accel / 2f);

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=0fafa5b7159c2a6c11f03ebd378a47736101b46e
archash=c26572df6b690a114702bac5af50d4fb72940b77