Epsilon ist jetzt nur noch ³ und die Collision motzt nicht rum. Falls Mike eine schönere Lösung hat, darf er gern ran.

This commit is contained in:
Armin Benz 2017-05-04 21:22:26 +02:00
parent 6aee1e0ea7
commit 41de5a6147
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ import de.samdev.colorrunner.game.world.CRGameWorld;
public abstract class MovingEntity extends CRGameEntity {
public Vector2 velocity = new Vector2();
public final static float EPSILON = 1e-4f;
public final static float EPSILON_TOUCH = 5e-4f;
public final static float EPSILON = 1e-3f;
public final static float EPSILON_TOUCH = 5e-3f;
private boolean face_TOP_isTouching = false;
private boolean face_LEFT_isTouching = false;