Browse Source

fixed inconsistency in ObjectController setting VX and VY of gameobject

master^2
jkonert 3 years ago
parent
commit
1da5ebb4de
  1. 2
      GameProject/src/controller/ObjectController.java

2
GameProject/src/controller/ObjectController.java

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

Loading…
Cancel
Save