summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/engine/HeadedPawn.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/HeadedPawn.java b/core/src/ch/asynk/tankontank/engine/HeadedPawn.java
index 6ed498e..9be1d06 100644
--- a/core/src/ch/asynk/tankontank/engine/HeadedPawn.java
+++ b/core/src/ch/asynk/tankontank/engine/HeadedPawn.java
@@ -52,6 +52,7 @@ public abstract class HeadedPawn extends Pawn
@Override
public void setRotation(float z)
{
+ getPosition().z = z;
head.setRotation(z);
this.orientation = Orientation.fromRotation(z);
}