This commit is contained in:
Anuken
2019-08-15 22:58:48 -04:00
parent 6f2fc00045
commit 62e3bc86eb
17 changed files with 5 additions and 6 deletions

View File

@@ -1,9 +1,8 @@
package io.anuke.mindustry.entities; package io.anuke.mindustry.entities;
import io.anuke.arc.math.Mathf; import io.anuke.arc.math.*;
import io.anuke.arc.math.geom.Vector2; import io.anuke.arc.math.geom.*;
import io.anuke.arc.util.Time; import io.anuke.mindustry.entities.traits.*;
import io.anuke.mindustry.entities.traits.TargetTrait;
/** /**
* Class for predicting shoot angles based on velocities of targets. * Class for predicting shoot angles based on velocities of targets.
@@ -24,8 +23,8 @@ public class Predict{
* @return the intercept location * @return the intercept location
*/ */
public static Vector2 intercept(float srcx, float srcy, float dstx, float dsty, float dstvx, float dstvy, float v){ public static Vector2 intercept(float srcx, float srcy, float dstx, float dsty, float dstvx, float dstvy, float v){
dstvx /= Time.delta(); //dstvx /= Time.delta();
dstvy /= Time.delta(); //dstvy /= Time.delta();
float tx = dstx - srcx, float tx = dstx - srcx,
ty = dsty - srcy; ty = dsty - srcy;

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 KiB

BIN
ios/data/Default-667h.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 KiB

BIN
ios/data/Default-736h.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

BIN
ios/data/Default~iphone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB