|
@ -56,7 +56,7 @@ public abstract class ObjectController { |
|
|
public void applySpeedVector() { |
|
|
public void applySpeedVector() { |
|
|
double ts = this.getPlayground().getTimestep(); |
|
|
double ts = this.getPlayground().getTimestep(); |
|
|
this.setX(this.getX() + this.getVX() * ts); |
|
|
this.setX(this.getX() + this.getVX() * ts); |
|
|
gameObject.setY(this.getY() + this.getVY() * ts); |
|
|
|
|
|
|
|
|
this.setY(this.getY() + this.getVY() * ts); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|