diff --git a/src/main/java/cactusServer/entities/MovableObject.java b/src/main/java/cactusServer/entities/MovableObject.java index 565992e..335c124 100644 --- a/src/main/java/cactusServer/entities/MovableObject.java +++ b/src/main/java/cactusServer/entities/MovableObject.java @@ -15,7 +15,6 @@ import net.arnx.jsonic.JSONHint; public class MovableObject extends Entity3D { - private Position3D position; private Velocity3D velocity; private AngularVelocity3D angularVelocity; private Quaternion3D angle; @@ -44,7 +43,7 @@ } public Position3D getPosition() { - return position; + return ((Object3D) (getPlaceable().getBody())).getPosition3D(); } @JSONHint(ignore = true) @@ -72,7 +71,6 @@ } public void setPosition(Position3D position) { - this.position = position; if (placeable != null) ((Object3D) (getPlaceable().getBody())).setPosition(position); }