diff options
author | madmaxoft <github@xoft.cz> | 2013-08-26 22:40:30 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-26 22:40:30 +0200 |
commit | 49d69a02285a1b803bd650f1359c15cb0c57cfce (patch) | |
tree | ccd06d77b95c8779bf15d9fd9e60daa3272658b2 /source | |
parent | Debug: arrow log their position in each tick (diff) | |
download | cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.tar cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.tar.gz cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.tar.bz2 cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.tar.lz cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.tar.xz cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.tar.zst cuberite-49d69a02285a1b803bd650f1359c15cb0c57cfce.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entities/ProjectileEntity.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/Entities/ProjectileEntity.cpp b/source/Entities/ProjectileEntity.cpp index 552a61c42..350cad95b 100644 --- a/source/Entities/ProjectileEntity.cpp +++ b/source/Entities/ProjectileEntity.cpp @@ -93,6 +93,9 @@ cArrowEntity::cArrowEntity(cEntity * a_Creator, double a_X, double a_Y, double a { SetSpeed(a_Speed); SetMass(0.1); + LOGD("Created arrow %d with speed {%.02f, %.02f, %.02f}", + m_UniqueID, GetSpeedX(), GetSpeedY(), GetSpeedZ() + ); } @@ -120,7 +123,11 @@ void cArrowEntity::Tick(float a_Dt, cChunk & a_Chunk) super::Tick(a_Dt, a_Chunk); // DEBUG: - LOGD("Arrow %d: {%.02f, %.02f, %.02f}", m_UniqueID, GetPosX(), GetPosY(), GetPosZ()); + LOGD("Arrow %d: pos {%.02f, %.02f, %.02f}, speed {%.02f, %.02f, %.02f}", + m_UniqueID, + GetPosX(), GetPosY(), GetPosZ(), + GetSpeedX(), GetSpeedY(), GetSpeedZ() + ); } |