diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-10 08:53:59 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-10 08:53:59 +0200 |
commit | 197dd079a5729bb733e13173a88958a2a327d91b (patch) | |
tree | b3c83f438839dd96c464afbd6df1f0da52c5d975 /core/src | |
parent | d71752cb7527ffac3fb25aea2c460bc18a3e3a5e (diff) | |
download | RustAndDust-197dd079a5729bb733e13173a88958a2a327d91b.zip RustAndDust-197dd079a5729bb733e13173a88958a2a327d91b.tar.gz |
HeadedPawn: setRotation() must set z coordinate of position
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/HeadedPawn.java | 1 |
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); } |