mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-03 04:40:33 -07:00
Automatic boost
This commit is contained in:
parent
14e0b471d3
commit
5fa6fccf7b
1 changed files with 1 additions and 1 deletions
|
|
@ -669,7 +669,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||
rect.width += expansion*2f;
|
||||
rect.height += expansion*2f;
|
||||
|
||||
isBoosting = EntityQuery.collisions().overlapsTile(rect);
|
||||
isBoosting = EntityQuery.collisions().overlapsTile(rect) || distanceTo(targetX, targetY) > 85f;
|
||||
|
||||
velocity.add(movement.scl(Timers.delta()));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue