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:
parent
6aee1e0ea7
commit
41de5a6147
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user