From 1da5ebb4decd871493a6e1ae6788bccbd183f2bb Mon Sep 17 00:00:00 2001 From: jkonert Date: Mon, 16 May 2022 16:08:56 +0200 Subject: [PATCH] fixed inconsistency in ObjectController setting VX and VY of gameobject --- GameProject/src/controller/ObjectController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameProject/src/controller/ObjectController.java b/GameProject/src/controller/ObjectController.java index dd16f16..65478f2 100644 --- a/GameProject/src/controller/ObjectController.java +++ b/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); }