diff --git a/src/main/java/cactusServer/entities/MovableObject.java b/src/main/java/cactusServer/entities/MovableObject.java index 74a603d..d160936 100644 --- a/src/main/java/cactusServer/entities/MovableObject.java +++ b/src/main/java/cactusServer/entities/MovableObject.java @@ -72,6 +72,7 @@ public void setPosition(Position3D position) { this.position = position; + ((Object3D)(getPlaceable().getBody())).setPosition(position); } public void setVelocity(Velocity3D velocity) { @@ -84,6 +85,7 @@ public void setAngle(Quaternion3D angle) { this.angle = angle; + ((Object3D) getPlaceable().getBody()).apply(angle, false); } public void setAttribute(Attribute attribute) { @@ -136,7 +138,7 @@ @JSONHint(ignore = true) public Object3D getObject() { - return object; + return (Object3D) getPlaceable().getBody(); } public void setObject(Object3D object) {